-
Notifications
You must be signed in to change notification settings - Fork 42
fix(internal/librarian): remove update-image-tag command #811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,12 +45,6 @@ type Config struct { | |
| // API Path is specified with the -api flag. | ||
| API string | ||
|
|
||
| // Branch is the branch name to use when working with git repositories. It is | ||
| // currently unused. | ||
| // | ||
| // Branch is specified with the -branch flag. | ||
| Branch string | ||
|
|
||
| // Build determines whether to build the generated library, and is only | ||
| // used in the generate command. | ||
| // | ||
|
|
@@ -113,7 +107,7 @@ type Config struct { | |
|
|
||
| // Push determines whether to push changes to GitHub. It is used in | ||
| // all commands that create commits in a language repository: | ||
| // configure, update-apis and update-image-tag. | ||
| // configure and update-apis. | ||
| // These commands all create pull requests if they | ||
| // | ||
| // By default (when Push isn't explicitly specified), commits are created in | ||
|
|
@@ -131,7 +125,7 @@ type Config struct { | |
| // in the format "email,name". | ||
| // | ||
| // PushConfig is used in all commands that create commits in a language repository: | ||
| // create-release-pr, configure, update-apis and update-image-tag. | ||
| // create-release-pr, configure and update-apis. | ||
| // | ||
| // PushConfig is optional. If unspecified, commits will use a default name of | ||
| // "Google Cloud SDK" and a default email of [email protected]. | ||
|
|
@@ -159,8 +153,7 @@ type Config struct { | |
| // Librarian-created changes with other changes. | ||
| // | ||
| // Repo is used by all commands which operate on a language repository: | ||
| // configure, create-release-artifacts, generate, update-apis, | ||
| // update-image-tag. | ||
| // configure, create-release-artifacts, generate, update-apis. | ||
| // | ||
| // When a local directory is specified for the generate command, the repo is checked to | ||
| // determine whether the specified API path is configured as a library. See the generate | ||
|
|
@@ -185,19 +178,12 @@ type Config struct { | |
| // When this is not specified, the googleapis repository is cloned | ||
| // automatically. | ||
| // | ||
| // Source is used by generate, update-apis, update-image-tag and configure | ||
| // Source is used by generate, update-apis and configure | ||
| // commands. | ||
| // | ||
| // Source is specified with the -source flag. | ||
| Source string | ||
|
|
||
| // Tag is the new tag for the language-specific Docker image, used only by the | ||
| // update-image-tag command. All operations within update-image-tag are performed | ||
| // using the new tag. | ||
| // | ||
| // Tag is specified with the -tag flag. | ||
| Tag string | ||
|
|
||
| // UserGID is the group ID of the current user. It is used to run Docker | ||
| // containers with the same user, so that created files have the correct | ||
| // ownership. | ||
|
|
||
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,10 +27,6 @@ func addFlagAPI(fs *flag.FlagSet, cfg *config.Config) { | |
| fs.StringVar(&cfg.API, "api", "", "path to the API to be configured/generated (e.g., google/cloud/functions/v2)") | ||
| } | ||
|
|
||
| func addFlagBranch(fs *flag.FlagSet, cfg *config.Config) { | ||
| fs.StringVar(&cfg.Branch, "branch", "main", "repository branch") | ||
| } | ||
|
|
||
| func addFlagBuild(fs *flag.FlagSet, cfg *config.Config) { | ||
| fs.BoolVar(&cfg.Build, "build", false, "whether to build the generated code") | ||
| } | ||
|
|
@@ -48,11 +44,6 @@ func addFlagProject(fs *flag.FlagSet, cfg *config.Config) { | |
| fs.StringVar(&cfg.Project, "project", "", "Project containing Secret Manager secrets.") | ||
| } | ||
|
|
||
| func addFlagPushConfig(fs *flag.FlagSet, cfg *config.Config) { | ||
| // TODO(https://github.com/googleapis/librarian/issues/724):remove the default for push-config | ||
| fs.StringVar(&cfg.PushConfig, "push-config", "[email protected],Google Cloud SDK", "The user and email for Git commits, in the format \"user:email\"") | ||
| } | ||
|
|
||
| func addFlagReleaseID(fs *flag.FlagSet, cfg *config.Config) { | ||
| fs.StringVar(&cfg.ReleaseID, "release-id", "", "The ID of a release PR") | ||
| } | ||
|
|
@@ -69,10 +60,6 @@ func addFlagSource(fs *flag.FlagSet, cfg *config.Config) { | |
| fs.StringVar(&cfg.Source, "source", "", "location of googleapis repository. If undefined, googleapis will be cloned to the output") | ||
| } | ||
|
|
||
| func addFlagTag(fs *flag.FlagSet, cfg *config.Config) { | ||
| fs.StringVar(&cfg.Tag, "tag", "", "new tag for the language-specific container image.") | ||
| } | ||
|
|
||
| func addFlagWorkRoot(fs *flag.FlagSet, cfg *config.Config) { | ||
| fs.StringVar(&cfg.WorkRoot, "output", "", "Working directory root. When this is not specified, a working directory will be created in /tmp.") | ||
| } | ||
|
|
||
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.