Skip to content
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

Add gorelease Make target #4169

Merged
merged 9 commits into from Aug 21, 2023
Merged

Add gorelease Make target #4169

merged 9 commits into from Aug 21, 2023

Conversation

pellared
Copy link
Member

@pellared pellared commented Aug 10, 2023

Towards open-telemetry/opentelemetry-go#4398

Also see open-telemetry/opentelemetry-go#4431

In this repo gorelease is "better" as we do not use that much replace statements as most modules are self-contained.

Nice example:

~/repos/opentelemetry-go-contrib/instrumentation/net/http/otelhttp$ gorelease
# go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
## incompatible changes
Handler: removed
## compatible changes
NewMiddleware: added

# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/net/http/otelhttp/v0.43.0)

Part of the output:

$ make gorelease 
cd ./tools && \
go build -o /home/rpajak/repos/opentelemetry-go-contrib/.tools/gorelease golang.org/x/exp/cmd/gorelease
gorelease in .:
# summary
Inferred base version: v1.17.0
Suggested version: v1.17.1
gorelease in ./detectors/aws/ec2:
# summary
Inferred base version: v1.17.0
Suggested version: v1.17.1 (with tag detectors/aws/ec2/v1.17.1)
gorelease in ./detectors/aws/ecs:
# summary
Inferred base version: v1.17.0
Suggested version: v1.17.1 (with tag detectors/aws/ecs/v1.17.1)
gorelease in ./detectors/aws/eks:
# summary
Inferred base version: v1.17.0
Suggested version: v1.18.0 (with tag detectors/aws/eks/v1.18.0)
gorelease in ./detectors/aws/lambda:
# summary
Inferred base version: v0.42.0
Suggested version: v0.42.1 (with tag detectors/aws/lambda/v0.42.1)
gorelease in ./detectors/gcp:
# summary
Inferred base version: v1.17.0
Suggested version: v1.18.0 (with tag detectors/gcp/v1.18.0)
gorelease in ./exporters/autoexport:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.

# summary
Inferred base version: none
Suggested version: v0.1.0 (with tag exporters/autoexport/v0.1.0)

gorelease in ./instrgen:
# summary
Inferred base version: none
Suggested version: v0.1.0 (with tag instrgen/v0.1.0)
gorelease in ./instrgen/driver:
gorelease: preparing to load packages for go.opentelemetry.io/contrib/instrgen/driver: looking for missing dependencies: go: go.opentelemetry.io/contrib/instrgen@v0.0.0-00010101000000-000000000000: invalid version: unknown revision 000000000000

gorelease in ./instrgen/driver/testdata/interface:
# diagnostics
go.opentelemetry.io/contrib/instrgen/testdata/interface: module path must end with "instrgen/driver/testdata/interface", since it is in subdirectory "instrgen/driver/testdata/interface"
go.mod: the following requirements are needed
        go.opentelemetry.io/contrib/instrgen@v0.0.0-20230807124808-e43928654816
Run 'go mod tidy' to add missing requirements.

# summary
Inferred base version: none
Suggested version: v0.1.0

gorelease in ./instrumentation/github.com/Shopify/sarama/otelsarama:
gorelease: listing versions of go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama: go: module go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama: Get "https://proxy.golang.org/go.opentelemetry.io/contrib/instrumentation/github.com/%21shopify/sarama/otelsarama/@v/list": dial tcp 142.250.75.17:443: i/o timeout

gorelease in ./instrumentation/github.com/Shopify/sarama/otelsarama/example:
gorelease: go: loading module retractions for github.com/Shopify/sarama@v1.38.1: Get "https://proxy.golang.org/github.com/%21shopify/sarama/@v/list": dial tcp 142.250.75.17:443: i/o timeout

gorelease in ./instrumentation/github.com/Shopify/sarama/otelsarama/test:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.

# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/github.com/Shopify/sarama/otelsarama/test/v0.43.0)

gorelease in ./instrumentation/github.com/astaxie/beego/otelbeego:
gorelease: go: loading module retractions for github.com/BurntSushi/toml@v0.3.1: Get "https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/list": dial tcp 142.250.75.17:443: i/o timeout
go: github.com/Knetic/govaluate@v3.0.0+incompatible: Get "https://proxy.golang.org/github.com/%21knetic/govaluate/@v/v3.0.0+incompatible.info": dial tcp 142.250.75.17:443: i/o timeout

gorelease in ./instrumentation/github.com/astaxie/beego/otelbeego/example:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.
required module github.com/gomodule/redigo@v2.0.0+incompatible retracted by module author: Old development version not maintained or published.
required module github.com/mattn/go-sqlite3@v2.0.3+incompatible retracted by module author: Accidental; no major changes or features.

# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/github.com/astaxie/beego/otelbeego/example/v0.43.0)

gorelease in ./instrumentation/github.com/astaxie/beego/otelbeego/test:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.
required module github.com/gomodule/redigo@v2.0.0+incompatible retracted by module author: Old development version not maintained or published.
required module github.com/mattn/go-sqlite3@v2.0.3+incompatible retracted by module author: Accidental; no major changes or features.

# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/github.com/astaxie/beego/otelbeego/test/v0.43.0)

gorelease in ./instrumentation/github.com/aws/aws-lambda-go/otellambda:
# summary
Inferred base version: v0.42.0
Suggested version: v0.42.1 (with tag instrumentation/github.com/aws/aws-lambda-go/otellambda/v0.42.1)
gorelease in ./instrumentation/github.com/aws/aws-lambda-go/otellambda/example:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.

# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/github.com/aws/aws-lambda-go/otellambda/example/v0.43.0)

gorelease in ./instrumentation/github.com/aws/aws-lambda-go/otellambda/test:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.

# summary
Inferred base version: v0.42.0
Suggested version: v0.42.1 (with tag instrumentation/github.com/aws/aws-lambda-go/otellambda/test/v0.42.1)

gorelease in ./instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.

# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/v0.43.0)

gorelease in ./instrumentation/github.com/aws/aws-sdk-go-v2/otelaws:
# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/v0.43.0)
gorelease in ./instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.

# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example/v0.43.0)

gorelease in ./instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/test:
# diagnostics
go.sum: one or more sums are missing. Run 'go mod tidy' to add missing sums.

# summary
Inferred base version: v0.42.0
Suggested version: v0.43.0 (with tag instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/test/v0.43.0)

@pellared pellared added the Skip Changelog Allow PR to succeed without requiring an addition to the CHANGELOG label Aug 10, 2023
@pellared pellared marked this pull request as ready for review August 10, 2023 10:12
@pellared pellared requested a review from a team as a code owner August 10, 2023 10:12
@MrAlias MrAlias merged commit 9ac039a into open-telemetry:main Aug 21, 2023
22 checks passed
@MrAlias MrAlias added this to the v0.43.0 milestone Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog Allow PR to succeed without requiring an addition to the CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants