We used a hard-coded list of capabilities that we copied from containerd, but the new "capability" package allows use to have a maintained list of capabilities. There's likely still some improvements to be made; First of all, the capability package could provide a function to get the list of strings. On the completion-side, we need to consider what format is most convenient; currently we use the canonical name (uppercase and "CAP_" prefix), however, tab-completion is case-sensitive by default, so requires the user to type uppercase letters to filter the list of options. Bash completion provides a `completion-ignore-case on` option to make completion case-insensitive (https://askubuntu.com/a/87066), but it looks to be a global option; the current cobra.CompletionOptions also don't provide this as an option to be used in the generated completion-script. Fish completion has `smartcase` (by default?) which matches any case if all of the input is lowercase. Zsh does not have a dedicated option, but allows setting matching-rules (see https://superuser.com/a/1092328). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
3.2 KiB
3.2 KiB
Changelog
This file documents all notable changes made to this project since the initial fork from https://github.com/syndtr/gocapability/commit/42c35b4376354fd5.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.3.0 - 2024-09-25
Added
- Added ListKnown and ListSupported functions. (#153)
- LastCap is now available on non-Linux platforms (where it returns an error). (#152)
Changed
- List is now deprecated in favor of ListKnown and ListSupported. (#153)
Fixed
- Various documentation improvements. (#151)
- Fix "generated code" comment. (#153)
0.2.0 - 2024-09-16
This is the first release after the move to a new home in github.com/moby/sys/capability.
Fixed
- Fixed URLs in documentation to reflect the new home.
0.1.1 - 2024-08-01
This is a maintenance release, fixing a few minor issues.
Fixed
0.1.0 - 2024-07-31
This is an initial release since the fork.
Breaking changes
- The
CAP_LAST_CAPvariable is removed; users need to modify the code to use LastCap to get the value. #6 - The code now requires Go >= 1.21.
Added
go.modandgo.sumfiles. #2- New LastCap function. #6
- Basic CI using GHA infra. #8, #9
- README and CHANGELOG. #10
Fixed
- Fixed ambient capabilities error handling in Apply. #3
- Fixed future kernel compatibility. #1
- Fixed various linter warnings. #4, #7
Changed
- Go build tags changed from old-style (
+build) to new Go 1.17+ style (go:build). #2