Skip to content

Commit

Permalink
fix: %go_build_online
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Aug 20, 2024
1 parent 7ffd464 commit bf55391
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macros.go_extra
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%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 bf55391

Please sign in to comment.