File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 - name : Install depends
3737 run : go get .
3838 - name : Build
39- run : go build -v -o ${{ steps.repo.outputs.repo }}-${{ steps.version.outputs.version }}-${{ matrix.os }}-${{ matrix.arch }}
39+ run : go build -v -trimpath - o ${{ steps.repo.outputs.repo }}-${{ steps.version.outputs.version }}-${{ matrix.os }}-${{ matrix.arch }}
4040 - name : Generate artifact attestation
4141 uses : actions/attest@v4
4242 with :
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ RUN go mod download && go mod verify
1010COPY . .
1111# To make reproducible the `COPY --from=builder` layer reproducible, we set modification time to build timestamp
1212# and we will copy the directory at once to avoid /usr/local/bin being "created" instead of copied (resulting in wrong a newer modification time).
13- RUN CGO_ENABLED=0 go build -o /usr/local/bin/ue-lite && touch --no-dereference --date="@$(ue-lite --build-timestamp)" /usr/local/bin /usr/local/bin/ue-lite
13+ RUN CGO_ENABLED=0 go build -trimpath - o /usr/local/bin/ue-lite && touch --no-dereference --date="@$(ue-lite --build-timestamp)" /usr/local/bin /usr/local/bin/ue-lite
1414
1515FROM alpine:3.23.3
1616COPY --from=builder /usr/local/bin /usr/local/bin
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ MKDIRP = mkdir -p
1111.PHONY : install uninstall build clean default
1212default : build
1313build :
14- go build
14+ CGO_ENABLED=0 go build -trimpath
1515clean :
1616 go clean
1717reinstall : uninstall install
You can’t perform that action at this time.
0 commit comments