Skip to content

Commit

Permalink
fix(go): %go_build_online
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Sep 20, 2024
1 parent c747bae commit de9fcb9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions macros.go_extra
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
%go_prep_online() (cd %{?1}%{!?1:.} && go mod download)

%go_build_online() mkdir -p build/bin && \
go build -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -s -w" -buildmode=pie \
-o %{?2}%{!?2:build/bin/%{?1}%{!?1:%name}} \
%{?1}%{!?1:.}
%go_build_online() mkdir -p build/bin && go build -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -s -w" -buildmode=pie -o %{?2}%{!?2:build/bin/%{?1}%{!?1:%name}} %{?1}%{!?1:.}

0 comments on commit de9fcb9

Please sign in to comment.