DockerCLI/cli/command/image
Sebastiaan van Stijn 1fd8e2434b
cli/command/image: add go:build tag to prevent downgrading go version
Before this:

    make shell
    make -C ./internal/gocompat/
    ...

    GO111MODULE=on go test -v
    # github.com/docker/cli/cli/command/image
    ../../cli/command/image/push.go:177:62: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
    FAIL	gocompat [build failed]
    make: *** [Makefile:3: verify] Error 1
    make: Leaving directory '/go/src/github.com/docker/cli/internal/gocompat'

After this patch:

    make shell
    make -C ./internal/gocompat/
    ...

    GO111MODULE=on go test -v
    === RUN   TestModuleCompatibllity
        main_test.go:133: all packages have the correct go version specified through //go:build
    --- PASS: TestModuleCompatibllity (0.00s)
    PASS
    ok  	gocompat	0.007s
    make: Leaving directory '/go/src/github.com/docker/cli/internal/gocompat'

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-06-18 11:59:39 +02:00
..
build cli/command/image/build: fix nosec comment 2024-06-10 21:19:32 +02:00
testdata vendor: github.com/docker/docker 70e46f2c7c2d (v26.0.0-rc3-dev) 2024-03-16 16:53:20 +01:00
build.go linting: fmt.Sprintf can be replaced with string concatenation (perfsprint) 2024-06-10 21:19:32 +02:00
build_test.go chore: fix function names in comment 2024-04-19 12:24:42 +08:00
client_test.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00
cmd.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
formatter_history.go linting: address else/if/elseif statements found by gocritic 2023-11-20 16:02:16 +01:00
formatter_history_test.go golangci-lint: enable dupword linter 2023-11-20 16:02:18 +01:00
history.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
history_test.go force TestNewHistoryCommandSuccess to use UTC timezone 2023-08-28 10:43:21 +02:00
import.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00
import_test.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00
inspect.go add //go:build directives to prevent downgrading to go1.16 language 2023-12-14 15:03:46 +01:00
inspect_test.go vendor: github.com/docker/docker v20.10.3-0.20220309172631-83b51522df43 2022-03-09 18:45:37 +01:00
list.go images: print hint when invoking "docker images" with ambiguous argument 2024-02-03 18:10:55 +01:00
list_test.go images: print hint when invoking "docker images" with ambiguous argument 2024-02-03 18:10:55 +01:00
load.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
load_test.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00
prune.go chore: remove backticks and resolve linting issues 2024-04-02 15:54:29 +02:00
prune_test.go vendor: github.com/docker/docker a736d0701c41 (master, v27.0.0-dev) 2024-06-10 17:41:09 +02:00
pull.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
pull_test.go linting: fmt.Errorf can be replaced with errors.New (perfsprint) 2024-06-10 21:19:31 +02:00
push.go cli/command/image: add go:build tag to prevent downgrading go version 2024-06-18 11:59:39 +02:00
push_test.go Replace deprecated types.Image* usage 2024-01-24 14:59:10 +01:00
remove.go Replace deprecated types.Image* usage 2024-01-24 14:59:10 +01:00
remove_test.go linting: fmt.Sprintf can be replaced with string concatenation (perfsprint) 2024-06-10 21:19:32 +02:00
save.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
save_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
tag.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
tag_test.go cli/command/image: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:41:55 +01:00
trust.go Removed all mentions of "please" from docs and messages 2024-06-11 16:53:40 +02:00
trust_test.go replace uses of deprecated env.Patch() 2022-09-22 17:28:07 +02:00