-
Notifications
You must be signed in to change notification settings - Fork 29
Jsl yoon/update go1.23 #290
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
Conversation
Signed-off-by: Lucas Yoon <lyoon@lyoon-thinkpadp1gen7.boston.csb>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: JslYoon The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| FROM golang:1.24-alpine@sha256:daae04ebad0c21149979cd8e9db38f565ecefd8547cf4a591240dc1972cf1399 AS builder | ||
| FROM golang:1.23-alpine AS builder |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium
Remediation tip: pin your Docker image by updating golang:1.23-alpine to golang:1.23-alpine@sha256:383395b794dffa5b53012a212365d40c8e37109a626ca30d6151c8348d380b5f
Click Remediation section below for further remediation help
c54fa97 to
292252b
Compare
292252b to
7dd0d76
Compare
| ARG ALPINE_VERSION=3.18 | ||
| ARG XX_VERSION=1.2.1 | ||
|
|
||
| FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
| ARG XX_VERSION=1.2.1 | ||
|
|
||
| FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx | ||
| FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
| ENV CGO_ENABLED=0 | ||
| WORKDIR /go/src/github.com/docker/distribution | ||
|
|
||
| FROM base AS version |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
| echo "-X ${PKG}/version.Version=${VERSION#v} -X ${PKG}/version.Revision=${REVISION} -X ${PKG}/version.Package=${PKG}" | tee /tmp/.ldflags; \ | ||
| echo -n "${VERSION}" | tee /tmp/.version; | ||
|
|
||
| FROM base AS build |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
| FROM scratch AS binary | ||
| COPY --from=build /usr/bin/registry / | ||
|
|
||
| FROM base AS releaser |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
| ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go | ||
| fi | ||
| export GOPATH=/tmp/build-golang | ||
| go get -u github.com/golang/dep/cmd/dep |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
| @@ -0,0 +1,19 @@ | |||
| FROM golang | |||
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Remediation tip: pin your Docker image by updating golang to golang@sha256:91e2cd436f7adbfad0a0cbb7bf8502fa863ed8461414ceebe36c6304731e0fd9
Click Remediation section below for further remediation help
| ADD . $GOPATH/src/github.com/nxadm/tail/ | ||
|
|
||
| # expecting to fetch dependencies successfully. | ||
| RUN go get -v github.com/nxadm/tail |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
| RUN go test -v github.com/nxadm/tail | ||
|
|
||
| # expecting to install successfully | ||
| RUN go install -v github.com/nxadm/tail |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
|
|
||
| # expecting to install successfully | ||
| RUN go install -v github.com/nxadm/tail | ||
| RUN go install -v github.com/nxadm/tail/cmd/gotail |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium library test
Click Remediation section below to solve this issue
|
@JslYoon found a workable solution for openshift/release#68063 to move forward with Go 1.24. |
Description of Changes
revert the changes from go 1.24 to go 1.23
Related Issue(s)
devfile/api#1710