From c819f7f729f99bfaa0061893f082215dab2f76b9 Mon Sep 17 00:00:00 2001 From: Joonas Kuorilehto Date: Fri, 23 May 2025 20:58:03 +0300 Subject: [PATCH] Add vscode settings and update goreleaser --- .gitignore | 2 ++ .goreleaser.yaml | 35 +++++++++++++++++++++++++++++++++++ .goreleaser.yml | 35 ----------------------------------- .vscode/extensions.json | 6 ++++++ .vscode/settings.json | 5 +++++ 5 files changed, 48 insertions(+), 35 deletions(-) create mode 100644 .goreleaser.yaml delete mode 100644 .goreleaser.yml create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 1521c8b..cadb142 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ dist +# Added by goreleaser init: +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..5841c2b --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,35 @@ +version: 2 + +builds: + - id: ipgrep + main: ./cmd/ipgrep + binary: ipgrep + buildmode: pie + env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + goarch: + - arm64 + - amd64 + +archives: + - id: ipgrep + # use zip for windows archives + format_overrides: + - goos: windows + formats: [zip] + +checksum: + name_template: checksums.txt + +changelog: + sort: asc + filters: + exclude: + - '^Github:' + - '^dev:' + - '^README:' + - '^chore:' diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 4f29b8c..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,35 +0,0 @@ -before: - hooks: - - go mod download -builds: - - main: ./cmd/ipgrep/main.go - id: "ipgrep" - binary: "ipgrep" - env: - - CGO_ENABLED=0 - goos: - - linux - - windows - - darwin -archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - format_overrides: - - goos: windows - format: zip - -checksum: - name_template: 'checksums.txt' -snapshot: - name_template: "{{ .Tag }}-next" -changelog: - sort: asc - filters: - exclude: - - '^Github:' - - '^dev:' - - '^README:' diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a741b80 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "golang.go", + "redhat.vscode-yaml" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..95b7eed --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "yaml.schemas": { + "https://goreleaser.com/static/schema.json": ".goreleaser.yaml" + } +}