Skip to content

Commit

Permalink
Declare globprovider module path correctly (#1276)
Browse files Browse the repository at this point in the history
The globprovider module path did not equal the globprovider package
path. This made it unusable with go get.

After changing the module path, I fixed up the otelcolbuilder Makefile
in order to ensure that it will always import at the latest version
correctly.

Signed-off-by: Eric Chlebek <[email protected]>
  • Loading branch information
echlebek authored Oct 10, 2023
1 parent 3e9257f commit 3cfd577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion otelcolbuilder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ generate-sources:
@$(MAKE) _builder SKIP_COMPILATION=true
# the changes below allow us to use a custom config provider
# this requires some additions to the main.go file generated by the builder
go mod edit -require=github.com/SumoLogic/sumologic-otel-collector/pkg/configprovider/globprovider@v0.0.0-00010101000000-000000000000 cmd/go.mod
cd cmd && go get github.com/SumoLogic/sumologic-otel-collector/pkg/configprovider/globprovider@latest
patch cmd/main.go cmd/main.go.patch
patch cmd/main_windows.go cmd/main_windows.go.patch

Expand Down
2 changes: 1 addition & 1 deletion pkg/configprovider/globprovider/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/SumoLogic/sumologic-otel-collector/pkg/configprovider/glob
module github.com/SumoLogic/sumologic-otel-collector/pkg/configprovider/globprovider

go 1.20

Expand Down

0 comments on commit 3cfd577

Please sign in to comment.