-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: let go.mod manage mage version (#5414)
* refactor: let go.mod manage mage version drop hardcoded version and use whatever version is specified in go.mod When calling go install without an explicit version the one in go.mod is used. * lint: remove unused variables * lint: remove unused variables
- Loading branch information
Showing
3 changed files
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,11 @@ ARG AGENT_IMAGE="docker.elastic.co/beats/elastic-agent" | |
FROM ${crossbuild_image}:${GO_VERSION}-main-debian8 as build | ||
ARG DEV="true" | ||
ARG SNAPSHOT="true" | ||
RUN go install github.com/magefile/[email protected] | ||
WORKDIR /elastic-agent/ | ||
COPY go.mod go.sum /elastic-agent/ | ||
RUN go mod download | ||
COPY . /elastic-agent/ | ||
RUN go install github.com/magefile/mage | ||
RUN mage golangcrossBuild | ||
RUN git rev-parse HEAD | cut -c 1-6 > .build_hash.txt | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters