revert --bundle-directory to --build-directory and other changes#154
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request updates the flag name from "bundle-directory" to "build-directory" across several commands and removes the deprecated "Access" field from bundle-related schema, data structures, and tests. Key changes include:
- Renaming flags in cmd/bundle.go to align with the updated terminology.
- Removing the "Access" property from TemplateData, bundle publishing, and related schema/test files.
- Updating comments and warnings to reflect changes in deprecated fields and supported configurations.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pkg/templatecache/template_cache.go | Removed the now-deprecated "Access" field from TemplateData. |
| pkg/commands/publish/package.go | Updated comments to reference terraform/opentofu files instead of provisioner files. |
| pkg/commands/generate_new_bundle_test.go | Removed deprecated "Access" property in test fixture for TemplateData. |
| pkg/bundle/schemas/bundle-schema.json | Removed the "access" property from the JSON schema as part of the deprecation. |
| pkg/bundle/lint_test.go | Removed usage of "Access" in bundle test fixtures. |
| pkg/bundle/bundle.go | Removed assignment of "Access" and added warning messages for deprecated and incorrect type. |
| cmd/image.go | Added a check to ensure image management is only used for the supported API URL. |
| cmd/bundle.go | Renamed the flag "bundle-directory" to "build-directory" in command definitions and usage. |
Comments suppressed due to low confidence (2)
pkg/templatecache/template_cache.go:12
- The 'Access' field has been removed from TemplateData; please verify that all dependent logic and tests are updated accordingly to reflect this deprecation.
Access string `json:"access"`
cmd/bundle.go:54
- Since the flag has been renamed from 'bundle-directory' to 'build-directory', please ensure that all user-facing documentation and corresponding tests are updated to reflect this change consistently.
bundleBuildCmd.Flags().StringP("build-directory", "b", ".", "Path to a directory containing a massdriver.yaml file.")
| return nil, err | ||
| } | ||
|
|
||
| if unmarshalledBundle.Access != "" { |
There was a problem hiding this comment.
[nitpick] The warning messages for deprecated 'access' and unexpected 'type' values are output using fmt.Println; consider using a proper logging mechanism or emitting warnings to stderr to ensure consistency in production environments.
coryodaniel
approved these changes
Jun 16, 2025
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.
No description provided.