1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Sebastiaan van Stijn f77213efc2
gosimple: S1039: unnecessary use of fmt.Sprintf
pkg/devicemapper/devmapper.go:383:28: S1039: unnecessary use of fmt.Sprintf (gosimple)
        if err := task.setMessage(fmt.Sprintf("@cancel_deferred_remove")); err != nil {
                                  ^
    integration/plugin/graphdriver/external_test.go:321:18: S1039: unnecessary use of fmt.Sprintf (gosimple)
                http.Error(w, fmt.Sprintf("missing id"), 409)
                              ^
    integration-cli/docker_api_stats_test.go:70:31: S1039: unnecessary use of fmt.Sprintf (gosimple)
            _, body, err := request.Get(fmt.Sprintf("/info"))
                                        ^
    integration-cli/docker_cli_build_test.go:4547:19: S1039: unnecessary use of fmt.Sprintf (gosimple)
                "--build-arg", fmt.Sprintf("FOO1=fromcmd"),
                               ^
    integration-cli/docker_cli_build_test.go:4548:19: S1039: unnecessary use of fmt.Sprintf (gosimple)
                "--build-arg", fmt.Sprintf("FOO2="),
                               ^
    integration-cli/docker_cli_build_test.go:4549:19: S1039: unnecessary use of fmt.Sprintf (gosimple)
                "--build-arg", fmt.Sprintf("FOO3"), // set in env
                               ^
    integration-cli/docker_cli_build_test.go:4668:32: S1039: unnecessary use of fmt.Sprintf (gosimple)
            cli.WithFlags("--build-arg", fmt.Sprintf("tag=latest")))
                                         ^
    integration-cli/docker_cli_build_test.go:4690:32: S1039: unnecessary use of fmt.Sprintf (gosimple)
            cli.WithFlags("--build-arg", fmt.Sprintf("baz=abc")))
                                         ^
    pkg/jsonmessage/jsonmessage_test.go:255:4: S1039: unnecessary use of fmt.Sprintf (gosimple)
                fmt.Sprintf("ID: status\n"),
                ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-10 13:03:27 +02:00
..
aaparser
archive pkg/archive temporarily skip some tests on Windowsd V19H1 (1903) and up 2021-04-09 01:07:27 +02:00
authorization Update documentation links 2021-02-25 12:11:50 +01:00
broadcaster
capabilities
chrootarchive pkg/chrootarchive: Skip privileged tests when non-root 2020-12-15 09:47:48 +07:00
containerfs replace pkg/symlink with github.com/moby/sys/symlink 2020-11-03 11:17:12 +01:00
devicemapper gosimple: S1039: unnecessary use of fmt.Sprintf 2021-06-10 13:03:27 +02:00
directory
discovery
dmesg
filenotify
fileutils pkg/fileutils: PatternMatcher.Matches(): remove debug logging 2021-06-09 11:56:00 +02:00
fsutils
homedir
idtools Fix userns-remap option when username & UID match 2021-02-10 15:58:34 +00:00
ioutils
jsonmessage gosimple: S1039: unnecessary use of fmt.Sprintf 2021-06-10 13:03:27 +02:00
locker
longpath
loopback
mount Separate non-Windows mount code from common code 2020-11-08 23:15:15 +11:00
namesgenerator gosec: G404: Use of weak random number generator 2021-06-10 13:03:18 +02:00
parsers
pidfile
platform
plugingetter
plugins
pools
progress
pubsub docker stats: fix 'panic: close of closed channel' 2020-10-24 11:48:56 +08:00
reexec
signal pkg/signal: ignore SIGURG on all platforms 2021-05-25 12:07:53 +02:00
stdcopy
streamformatter
stringid
symlink replace pkg/symlink with github.com/moby/sys/symlink 2020-11-03 11:17:12 +01:00
sysinfo Fix setting swaplimit=true without checking 2021-06-03 22:54:10 +02:00
system Remove LCOW code (step 1) 2021-06-03 21:16:21 +02:00
tailfile
tarsum
term
truncindex
urlutil
useragent
README.md

pkg/ is a collection of utility packages used by the Moby project without being specific to its internals.

Utility packages are kept separate from the moby core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Moby organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!