Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

thaJeztah
Copy link
Member

- Human readable description for the release notes

Go SDK: deprecate profiles package which got migrated to github.com/moby/profiles

- A picture of a cute animal (not mandatory but encouraged)

vendor.mod Outdated
Comment on lines 10 to 13
replace (
github.com/moby/profiles/apparmor => github.com/moby/profiles/apparmor v0.0.0-20250722153716-c936cc7b4074
github.com/moby/profiles/seccomp => github.com/moby/profiles/seccomp v0.0.0-20250722153716-c936cc7b4074
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go really doesn't like submodules; it happily took github.com/moby/profiles/apparmor, but then didn't know what to do with github.com/moby/profiles/seccomp (module found but doesn't have package).

Possibly it took the root of the repo, then used apparmor as a package not a module

@thaJeztah thaJeztah added area/go-sdk impact/go-sdk Noteworthy (compatibility changes) in the Go SDK impact/deprecation labels Jul 22, 2025
@thaJeztah thaJeztah force-pushed the migrate_profiles branch 2 times, most recently from a81b84c to 0d68120 Compare July 22, 2025 16:34
@thaJeztah
Copy link
Member Author

Ah, looks like we have a CLI integration test that uses the JSON file that was in it, but now moved to the vendor directory;

=== Failed
=== FAIL: amd64.integration-cli TestDockerCLIRunSuite/TestRunSeccompWithDefaultProfile (0.05s)
    docker_cli_run_unix_test.go:1324: assertion failed: 
        --- ←
        +++ →
        @@ -1,2 +1 @@
        -/usr/local/cli-integration/docker: opening seccomp profile (../profiles/seccomp/default.json) failed: open ../profiles/seccomp/default.json: no such file or directory.
        -See '/usr/local/cli-integration/docker run --help'.
        +unshare: unshare failed: Operation not permitted
        
    --- FAIL: TestDockerCLIRunSuite/TestRunSeccompWithDefaultProfile (0.05s)

@thaJeztah thaJeztah marked this pull request as ready for review July 22, 2025 18:05
Copy link
Contributor

@austinvazquez austinvazquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woot! LGTM.

@austinvazquez
Copy link
Contributor

Bringing this in to unblock some of the daemon module work.

@austinvazquez austinvazquez merged commit 38a612c into moby:master Jul 22, 2025
311 of 314 checks passed
@thaJeztah thaJeztah deleted the migrate_profiles branch July 22, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants