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

Fix docker build issues #15919

Closed

Conversation

dliappis
Copy link
Contributor

@dliappis dliappis commented Feb 8, 2024

Release notes

[rn:skip]

What does this PR do?

We don't pin the minor version of the go docker
image and the recent update to 1.22 resulted in
the following error:

go env -w GO111MODULE=off && go get gopkg.in/yaml.v2
go: modules disabled by GO111MODULE=off; see 'go help modules'

This commit pins the Go docker image to 1.21
until we resolve the issue in a more proper manner (using go modules) in a follow up PR.

Why is it important/What is the impact to the user?

Unblocks DRA and CI.

How to test this PR locally

DRA snapshot build link (main): https://buildkite.com/elastic/logstash-dra-snapshot-pipeline/builds/495

Related issues

#15920

We don't pin the minor version of the go docker
image and the recent update to 1.22 resulted in
the following error:

```
go env -w GO111MODULE=off && go get gopkg.in/yaml.v2
go: modules disabled by GO111MODULE=off; see 'go help modules'
```

This commit pins the Go docker image to 1.21
until we resolve the issue in a more proper manner
(using go modules) in a follow up PR.
@dliappis dliappis added the ci label Feb 8, 2024
@dliappis dliappis self-assigned this Feb 8, 2024
Copy link

Quality Gate failed Quality Gate failed

Failed conditions

1 Security Hotspot

See analysis details on SonarQube

@dliappis dliappis requested review from andsel and jsvd February 8, 2024 09:39
@dliappis
Copy link
Contributor Author

dliappis commented Feb 8, 2024

The SonarQube analysis reports https://sonar.elastic.dev/security_hotspots?id=elastic_logstash_AYm_nEbQaV3I-igkX1q9&pullRequest=15919&inNewCodePeriod=true

i.e.

image

but since this is a builder image step just for building env2yaml, and it's not a new issue introduced by this PR, I think we are ok. @jsvd for thoughts.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @dliappis

Copy link
Contributor

@andsel andsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dliappis
Copy link
Contributor Author

dliappis commented Feb 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants