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

Release requires Go 1.21 and no direct proxy #29290

Closed
jpkrohling opened this issue Nov 15, 2023 · 4 comments
Closed

Release requires Go 1.21 and no direct proxy #29290

jpkrohling opened this issue Nov 15, 2023 · 4 comments
Labels
closed as inactive priority:p2 Medium release-retro Issues discussed in a release retrospective Stale

Comments

@jpkrohling
Copy link
Member

Component(s)

No response

Describe the issue you're reporting

When doing the release for v0.89.0, I ran into two problems that could have been avoided by using the proper versions and configuration of Go:

  • There's an issue with github.com/openshift/api having references to non-existing tags. This is fixed by not using a direct connection to the repositories. A proxy should be used instead by running this command: go env -w GOPROXY='https://proxy.golang.org,direct'
  • Using Go 1.20.x has a problem resolving a specific dependency (cloud.google.com/go/compute/metadata). Using Go 1.21 bypasses this (see below).
  • I have also had a go checksum mismatch error related to a module within go-openapi. Removing my cache for modules on that namespace solved the problem (sudo rm -rf /home/jpkroehling/go/pkg/mod/github.com/go-openapi/), even though I'm certainly not pleasing security-minded folks (why have there been checksum changes??).

The github.com/openshift/api problem is the following:

 go: downloading github.com/openshift/api v3.9.0+incompatible
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/k8snode imports
	github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig imports
	github.com/openshift/client-go/quota/clientset/versioned imports
	github.com/openshift/client-go/quota/clientset/versioned/typed/quota/v1 imports
	github.com/openshift/api/quota/v1: reading github.com/openshift/api/go.mod at revision v3.9.0: unknown revision v3.9.0

The cloud.google.com/go/compute/metadata problem is the following:

github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor tested by
	github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor.test imports
	go.opentelemetry.io/collector/receiver/otlpreceiver imports
	go.opentelemetry.io/collector/config/configgrpc imports
	go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc tested by
	go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.test imports
	google.golang.org/grpc/interop imports
	golang.org/x/oauth2/google imports
	cloud.google.com/go/compute/metadata: ambiguous import: found package cloud.google.com/go/compute/metadata in multiple modules:
	cloud.google.com/go v0.26.0 (/home/jpkroehling/go/pkg/mod/cloud.google.com/[email protected]/compute/metadata)
	cloud.google.com/go/compute/metadata v0.2.4-0.20230617002413-005d2dfb6b68 (/home/jpkroehling/go/pkg/mod/cloud.google.com/go/compute/[email protected])
make[2]: *** [../../Makefile.Common:186: tidy] Error 1
make[2]: Leaving directory '/home/jpkroehling/Projects/github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor'
@jpkrohling jpkrohling added the release-retro Issues discussed in a release retrospective label Nov 15, 2023
@mx-psi mx-psi added the priority:p2 Medium label Nov 15, 2023
@bryan-aguilar
Copy link
Contributor

Regarding the goproxy setting, I did a quick search but couldn't find any issues or PRs on the reasoning that we chose direct. I do remember the discussion in SIG meetings though. I am one of the users that must use GOPROXY=direct due to company restrictions around the usage of the official go proxy.

Dealing with checksum mismatches has been a real pain. Usually we have to address those with replace statements due to the underlying tag being changed. A big no no from what I understand in the go packaging world.

cloud.google.com/go/compute/metadata

I thought we had replace statements already to handle this error? Maybe it was a past version and we were able to get rid of the replace, because I don't see it in the ADOT collector anymore. aws-observability/aws-otel-collector#926 was this the same issue you were seeing?

@jpkrohling
Copy link
Member Author

Another thing that the release instructions are missing: check items labeled with "release-blocker".

Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Copy link
Contributor

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 16, 2024
kenfinnigan added a commit to lumigo-io/lumigo-otel-collector-contrib that referenced this issue Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed as inactive priority:p2 Medium release-retro Issues discussed in a release retrospective Stale
Projects
None yet
Development

No branches or pull requests

3 participants