Files
docker-cli/vendor/github.com/moby/sys/capability/CHANGELOG.md
Sebastiaan van Stijn 462e08219d cli/container: use github.com/moby/sys/capability for completions
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>
2024-10-01 14:01:02 +02:00

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

Changed

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

  • Fixed future kernel compatibility, for real this time. #11
  • Fixed LastCap to be a function. #12

0.1.0 - 2024-07-31

This is an initial release since the fork.

Breaking changes

  • The CAP_LAST_CAP variable 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.mod and go.sum files. #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

Removed

  • Removed support for capabilities v1 and v2. #1
  • Removed init function so programs that use this package start faster. #6
  • Removed CAP_LAST_CAP (use LastCap instead). #6