Skip to content

Commit fe50105

Browse files
authored
fix(internal/librariangen): remove rogue source path in configure (#13249)
1 parent 45f20a1 commit fe50105

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/librariangen/configure/configure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func configureLibrary(ctx context.Context, cfg *Config, library *request.Library
207207
// - internal/version.go
208208
// - go.mod
209209
if len(library.APIs) == 1 {
210-
library.SourcePaths = []string{library.ID, "internal/generated/", "internal/generated/snippets/" + library.ID}
210+
library.SourcePaths = []string{library.ID, "internal/generated/snippets/" + library.ID}
211211
library.RemoveRegex = []string{"^internal/generated/snippets/" + library.ID + "/"}
212212
library.TagFormat = "{id}/v{version}"
213213
library.Version = "0.0.0"

internal/librariangen/configure/configure_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func TestConfigure(t *testing.T) {
154154
APIs: []request.API{
155155
{Path: "google/cloud/capacityplanner/v1beta", ServiceConfig: "service.yaml", Status: "new"},
156156
},
157-
SourcePaths: []string{"capacityplanner", "internal/generated/", "internal/generated/snippets/capacityplanner"},
157+
SourcePaths: []string{"capacityplanner", "internal/generated/snippets/capacityplanner"},
158158
RemoveRegex: []string{
159159
"^internal/generated/snippets/capacityplanner/",
160160
"^apiv1beta/[^/]*_client\\.go$",

0 commit comments

Comments
 (0)