This repository has been archived by the owner on Sep 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand mage and add build options #73
Merged
Merged
Changes from 5 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
f58d6a9
trial
narph bdea14a
merge
narph 51ba2db
change
narph 80e84a7
add pkg
narph e082b45
update
narph 6968cde
update
narph d5f247e
work on mage
narph 5a9df25
work on mage
narph b984b1d
work on ci
narph d9034f7
work on ci
narph b83be8a
fix
narph b85bb5b
remove
narph e480da7
notice
narph 7d56bcf
forbidigo
narph a6520ef
forbidigo
narph a5d752b
sort imports
narph 105d147
lint
narph ae0b7b7
lint
narph 6df1da5
work on build
narph 6dff21d
undo installer
narph a13bfa2
work on version
narph 940c526
unitTest
narph e35a4fd
test binaries
narph 08583d3
remove local
narph ea5c82d
rename
narph a4c2e0d
remore extra logging
narph b26fb74
review
narph bdfc818
add flags
narph 5fb2eec
add flags
narph bdadced
version update
narph 51c7c40
version update
narph 223c098
version fix
narph abff0ba
merge
narph 160f981
lint
narph 81b1e6e
add binary check
narph 981a418
add binary check
narph fb3f91a
remove
narph a26ab2f
rename env
narph File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -50,4 +50,5 @@ elastic-agent-shipper | |
|
||
|
||
# VSCode | ||
/.vscode | ||
/.vscode | ||
dist/ |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Make sure to check the documentation at https://goreleaser.com | ||
before: | ||
hooks: | ||
- go mod tidy | ||
- go generate ./... | ||
builds: | ||
- ldflags: | ||
- -s -w -X main.Tag={{.Tag}} | ||
- -s -w -X main.CommitHash={{.ShortCommit}} | ||
- -s -w -X main.BuildTime={{.Timestamp}} | ||
- id: darwin | ||
binary: '{{ .ProjectName }}-{{ .Env.VERSION }}-{{ if .IsSnapshot}}SNAPSHOT{{ end }}-{{ .Os }}-{{ if eq .Arch "amd64" }}x86_64{{ end }}{{ if eq .Arch "arm64" }}aarch64{{ end }}/{{ .ProjectName }}' | ||
narph marked this conversation as resolved.
Show resolved
Hide resolved
|
||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
no_unique_dist_dir: true | ||
- id: linux | ||
binary: '{{ .ProjectName }}-{{ .Env.VERSION }}-{{ if .IsSnapshot}}SNAPSHOT{{ end }}-{{ .Os }}-{{ if eq .Arch "amd64" }}x86_64{{ end }}{{ if eq .Arch "386" }}x86{{ end }}{{ if eq .Arch "arm64" }}{{ .Arch }}{{ end }}/{{ .ProjectName }}' | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
- 386 | ||
no_unique_dist_dir: true | ||
- id: windows | ||
binary: '{{ .ProjectName }}-{{ .Env.VERSION }}-{{ if .IsSnapshot}}SNAPSHOT{{ end }}-{{ .Os }}-{{ if eq .Arch "amd64" }}x86_64{{ end }}{{ if eq .Arch "386" }}x86{{ end }}/{{ .ProjectName }}' | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- windows | ||
goarch: | ||
- amd64 | ||
- 386 | ||
no_unique_dist_dir: true | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Version }}-SNAPSHOT-{{ .Commit }}" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
dist: build/binaries | ||
env: | ||
- VERSION=8.3.0 |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why viscose disappeared?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's still there, in
#directories