Skip to content

Comments

Freeze v5 (and a few refactoring)#1810

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:freeze-v5
Feb 24, 2026
Merged

Freeze v5 (and a few refactoring)#1810
dgageot merged 1 commit intodocker:mainfrom
dgageot:freeze-v5

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Feb 20, 2026

No description provided.

@dgageot dgageot requested a review from a team as a code owner February 20, 2026 17:22
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

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

Critical Bug Found: Incorrect Package Declarations

This PR introduces a critical compilation error that will prevent the code from building.

All 7 files in the new pkg/config/v5/ package incorrectly declare package latest instead of package v5. This causes a package naming conflict because:

  1. The files are located in the pkg/config/v5 directory
  2. pkg/config/versions.go imports v5 "github.com/docker/cagent/pkg/config/v5"
  3. It then calls v5.Register(parsers, &upgraders) expecting a v5 package
  4. With all files declaring package latest, the build will fail with "found packages latest (model_config_clone_test.go) and v5 (expected package name) in pkg/config/v5"

Impact: The code will not compile. This must be fixed before merging.

Fix: Change package latest to package v5 in all 7 files in the v5 directory.

@rumpl
Copy link
Member

rumpl commented Feb 23, 2026

Should we do this after the skills thing? #1822

@dgageot
Copy link
Member Author

dgageot commented Feb 23, 2026

@rumpl OK. Also I think I got it messed up a bit. I'll check tomorrow

@dgageot dgageot force-pushed the freeze-v5 branch 2 times, most recently from 784dbc9 to 63b44da Compare February 24, 2026 10:42
Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot dgageot merged commit 79140af into docker:main Feb 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants