You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `manifest` command regenerates the `internal/.repo-metadata-full.json` file.
88
+
This file contains metadata about all of the modules in the repository.
89
+
90
+
There are two modes of operation:
91
+
1.**Full Regeneration (default):** This mode regenerates the entire file from scratch based on the existing `config.yaml` and `.OwlBot.yaml` files. It should be run anytime there are changes to those configuration files. To prevent accidental data loss, this mode automatically preserves existing entries for modules listed in the `skip-module-scan-paths` section of the configuration.
92
+
2.**Targeted Update (`-modules` flag):** This mode allows you to add or refresh one or more specific modules without regenerating the entire file. This is useful for adding a newly-generated module to the manifest.
93
+
94
+
To run a full regeneration, from the **repository root**, run the following:
95
+
96
+
```
97
+
go run ./internal/postprocessor manifest -googleapis-dir=$GOOGLEAPIS
98
+
```
99
+
100
+
To add or refresh only the `accessapproval` and `asset` modules:
101
+
```
102
+
go run ./internal/postprocessor manifest -googleapis-dir=$GOOGLEAPIS -modules=accessapproval,asset
103
+
```
104
+
105
+
Note: `$GOOGLEAPIS` should be an absolute path to a local clone of `googleapis/googleapis`.
106
+
85
107
## Validating your config changes
86
108
87
109
The `validate` command is run as a presubmit on changes to either the
manifestCmd.StringVar(&modulesFlag, "modules", "", "Comma-separated list of module names to update. If empty, regenerates entire manifest based on OwlBot config files.")
87
+
}
88
+
81
89
funcmain() {
82
90
clientRoot:=flag.String("client-root", "/workspace/google-cloud-go", "Path to clients.")
83
91
googleapisDir:=flag.String("googleapis-dir", "", "Path to googleapis/googleapis repo.")
84
92
directories:=flag.String("dirs", "", "Comma-separated list of module names to run (not paths).")
85
93
branchOverride:=flag.String("branch", "", "The branch that should be processed by this code")
86
94
githubUsername:=flag.String("gh-user", "googleapis", "GitHub username where repo lives.")
87
95
prFilepath:=flag.String("pr-file", "/workspace/new_pull_request_text.txt", "Path at which to write text file if changing PR title or body.")
96
+
manifestCmd.StringVar(clientRoot, "client-root", "/workspace/google-cloud-go", "Path to clients.")
97
+
manifestCmd.StringVar(googleapisDir, "googleapis-dir", "", "Path to googleapis/googleapis repo.")
0 commit comments