You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User can build an application without the hassle of setting -ldflags by yourself. Example:
// Use local OS and arch// release.Build("src", "dst")release.Build("cmd/client", "./bin/client")
// Use a given OS and arch// release.Build("src", "dst", "GOOS", "GOARCH")release.Build("cmd/client", "./bin/client", "linux", "amd64")
The text was updated successfully, but these errors were encountered:
Description
Add example on how to set up version flags via magefile.
We can add similar function as this one:
https://github.com/getporter/magefiles/blob/5a76d0fb3bc9d58ecb0e568eeda9fa97fd607443/releases/build.go#L20-L35
Reason
User can build an application without the hassle of setting
-ldflags
by yourself. Example:The text was updated successfully, but these errors were encountered: