Replace scattered defaults subcommands with system property.#604
Merged
jglogan merged 3 commits intoapple:mainfrom Sep 16, 2025
Merged
Replace scattered defaults subcommands with system property.#604jglogan merged 3 commits intoapple:mainfrom
system property.#604jglogan merged 3 commits intoapple:mainfrom
Conversation
system property.
- Replaces `registry default` and `system dns default` subcommands with `system property`. - Users can use `system property ls` to see details about each supported default value. - `system property set` implements reasonable validation for all properties. - NOTE: Probing of the registry for `registry default set` was removed, which means users will find out about a botched setting when pulling or pushing.
- Updated all documentation to use the new property commands instead of macOS defaults or individual default subcommands.
7c4815e to
9c1da8a
Compare
This was referenced Sep 13, 2025
| } | ||
| DefaultsStore.set(value: value, key: key) | ||
| case .defaultBuilderImage, .defaultInitImage: | ||
| guard (try? Reference(path: value)) != nil else { |
Contributor
There was a problem hiding this comment.
I think this should be (try? Reference.parse(value)) != nil
adityaramani
approved these changes
Sep 16, 2025
Contributor
adityaramani
left a comment
There was a problem hiding this comment.
Just had one comment - rest looks good
- Use the correct reference constructor. - Fix missing DefaultsStore set for kernel URL.
katiewasnothere
approved these changes
Sep 16, 2025
Mcrich23
added a commit
to Mcrich23/container
that referenced
this pull request
Sep 17, 2025
commit 449f1d2 Author: J Logan <sgtbakerrahulnet@yahoo.com> Date: Tue Sep 16 13:37:55 2025 -0700 Replace scattered defaults subcommands with `system property`. (apple#604) Common subcommands for all defaults. - Closes apple#384. - Replaces `registry default` and `system dns default` subcommands with `system property`. - Users can use `system property ls` to see details about each supported default value. - `system property set` implements reasonable validation for all properties. - NOTE: Probing of the registry for `registry default set` was removed, which means users will find out about a botched setting when pulling or pushing. - Updates docs. ## Type of Change - [ ] Bug fix - [x] New feature - [x] Breaking change - [x] Documentation update ## Motivation and Context See apple#384. ## Testing - [x] Tested locally - [x] Added/updated tests - [x] Added/updated docs commit 386fd87 Author: Kathryn Baldauf <k_baldauf@apple.com> Date: Tue Sep 16 10:52:08 2025 -0700 Enumerate using relative paths to avoid mismatch with symlink resolution of special paths like /tmp (apple#613) ## Type of Change - [x] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update ## Motivation and Context Fixes apple#588. This PR changes the archiver compression file enumeration to use the [enumerator(atPath:)](https://developer.apple.com/documentation/foundation/filemanager/enumerator(atpath:)) version. This version returns relative paths instead of full file paths from the filesystem. /tmp is symlinked to /private/tmp and some swift packages will handle that path differently. While a call to Foundation's `URL.resolvingSymlinksInPath()` will return "/tmp", a call to `FileManager.enumerator(at:)` will return "/private/tmp". This difference causes a container image build to fail when the user is using a path under /tmp or other special case paths as the context directory. ## Testing - [x] Tested locally - [x] Added/updated tests - [ ] Added/updated docs Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com> commit 79cc363 Author: J Logan <sgtbakerrahulnet@yahoo.com> Date: Tue Sep 16 10:14:14 2025 -0700 Relocates API server to Helpers, service to Services. (apple#616) - Closes apple#615. Improves project organization. Separates service so it can be tested and used separately from the executable target. No functional changes. commit a54be36 Author: J Logan <sgtbakerrahulnet@yahoo.com> Date: Mon Sep 15 11:27:51 2025 -0700 Add `--labels` for networks. (apple#600) - Closes apple#557. - Breaking change: removes `.upToNextOption` for labels on volumes as this is not what is done for containers, and it forces the argument to precede the options if a label is supplied, which is non-intuitive. ## Type of Change - [ ] Bug fix - [x] New feature - [x] Breaking change - [x] Documentation update ## Motivation and Context Consistent features and UX across managed resources. ## Testing - [x] Tested locally - [x] Added/updated tests - [x] Added/updated docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Common subcommands for all defaults.
registry defaultandsystem dns defaultsubcommands withsystem property.system property lsto see details about each supported default value.system property setimplements reasonable validation for all properties.registry default setwas removed, which means users will find out about a botched setting when pulling or pushing.Type of Change
Motivation and Context
See #384.
Testing