@@ -34,11 +34,14 @@ import (
3434)
3535
3636const (
37- sidekickFile = ".sidekick.toml"
38- cargoFile = "Cargo.toml"
39- discoveryArchivePrefix = "https://github.com/googleapis/discovery-artifact-manager/archive/"
40- googleapisArchivePrefix = "https://github.com/googleapis/googleapis/archive/"
41- tarballSuffix = ".tar.gz"
37+ sidekickFile = ".sidekick.toml"
38+ cargoFile = "Cargo.toml"
39+ discoveryArchivePrefix = "https://github.com/googleapis/discovery-artifact-manager/archive/"
40+ googleapisArchivePrefix = "https://github.com/googleapis/googleapis/archive/"
41+ showcaseArchivePrefix = "https://github.com/googleapis/gapic-showcase/archive/"
42+ protobufArchivePrefix = "https://github.com/protocolbuffers/protobuf/archive/"
43+ conformanceArchivePrefix = "https://github.com/protocolbuffers/protobuf/archive/"
44+ tarballSuffix = ".tar.gz"
4245)
4346
4447var (
@@ -162,10 +165,20 @@ func readRootSidekick(repoPath string) (*config.Config, error) {
162165 discoveryRoot , _ := sidekick .Source ["discovery-root" ].(string )
163166 googleapisSHA256 , _ := sidekick .Source ["googleapis-sha256" ].(string )
164167 googleapisRoot , _ := sidekick .Source ["googleapis-root" ].(string )
168+ showcaseRoot , _ := sidekick .Source ["showcase-root" ].(string )
169+ showcaseSHA256 , _ := sidekick .Source ["showcase-sha256" ].(string )
170+ protobufRoot , _ := sidekick .Source ["protobuf-src-root" ].(string )
171+ protobufSHA256 , _ := sidekick .Source ["protobuf-src-sha256" ].(string )
172+ protobufSubDir , _ := sidekick .Source ["protobuf-src-subdir" ].(string )
173+ conformanceRoot , _ := sidekick .Source ["conformance-root" ].(string )
174+ conformanceSHA256 , _ := sidekick .Source ["conformance-sha256" ].(string )
165175 generateSetterSamples , _ := sidekick .Codec ["generate-setter-samples" ].(string )
166176
167177 discoveryCommit := strings .TrimSuffix (strings .TrimPrefix (discoveryRoot , discoveryArchivePrefix ), tarballSuffix )
168178 googleapisCommit := strings .TrimSuffix (strings .TrimPrefix (googleapisRoot , googleapisArchivePrefix ), tarballSuffix )
179+ showcaseCommit := strings .TrimSuffix (strings .TrimPrefix (showcaseRoot , showcaseArchivePrefix ), tarballSuffix )
180+ protobufCommit := strings .TrimSuffix (strings .TrimPrefix (protobufRoot , protobufArchivePrefix ), tarballSuffix )
181+ conformanceCommit := strings .TrimSuffix (strings .TrimPrefix (conformanceRoot , conformanceArchivePrefix ), tarballSuffix )
169182
170183 // Parse package dependencies
171184 packageDependencies := parsePackageDependencies (sidekick .Codec )
@@ -181,6 +194,19 @@ func readRootSidekick(repoPath string) (*config.Config, error) {
181194 Commit : googleapisCommit ,
182195 SHA256 : googleapisSHA256 ,
183196 },
197+ Showcase : & config.Source {
198+ Commit : showcaseCommit ,
199+ SHA256 : showcaseSHA256 ,
200+ },
201+ ProtobufSrc : & config.Source {
202+ Commit : protobufCommit ,
203+ SHA256 : protobufSHA256 ,
204+ Subpath : protobufSubDir ,
205+ },
206+ Conformance : & config.Source {
207+ Commit : conformanceCommit ,
208+ SHA256 : conformanceSHA256 ,
209+ },
184210 },
185211 Default : & config.Default {
186212 Output : "src/generated/" ,
0 commit comments