Skip to content

Commit

Permalink
fix: update golang, goreleaser, libraries (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
isindir authored Dec 7, 2024
1 parent bf16944 commit 466b5b6
Show file tree
Hide file tree
Showing 8 changed files with 129 additions and 1,612 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# UPDATE_HERE
# https://github.com/asdf-vm/actions/releases
- name: Install asdf & tools
uses: asdf-vm/actions/install@v2
uses: asdf-vm/actions/install@v3

- name: Check out full code history
run: |
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
# UPDATE_HERE
# https://github.com/asdf-vm/actions/releases
- name: Install asdf & tools
uses: asdf-vm/actions/install@v2
uses: asdf-vm/actions/install@v3

- name: Check out full code history
run: |
Expand Down
135 changes: 65 additions & 70 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- go mod vendor
# you may remove this if you don't need go generate
#- go generate ./...
# You may remove this if you don't use go modules.
- go mod tidy
- go mod vendor
# you may remove this if you don't need go generate
#- go generate ./...
builds:
- env:
- CGO_ENABLED=0
- GOPROXY=https://proxy.golang.org go
- GO111MODULE=on
goos:
- linux
- windows
- darwin
ldflags:
- "-s -w -X github.com/isindir/git-get/version.Version=v{{.Version}} -X github.com/isindir/git-get/version.Commit={{.ShortCommit}} -X github.com/isindir/git-get/version.Time={{.CommitDate}}"
- env:
- CGO_ENABLED=0
- GOPROXY=https://proxy.golang.org go
- GO111MODULE=on
goos:
- linux
- windows
- darwin
ldflags:
- "-s -w -X github.com/isindir/git-get/version.Version=v{{.Version}} -X github.com/isindir/git-get/version.Commit={{.ShortCommit}} -X github.com/isindir/git-get/version.Time={{.CommitDate}}"
brews:
- name: git-get
repository:
owner: isindir
name: homebrew-git-get
branch: master
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: Eriks Zelenka
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }} - {{.ShortCommit}}"
folder: Formula
homepage: "https://github.com/isindir/git-get"
license: "MIT"
description: "Tool to clone/fetch project repositories an-mass using Gitfile configuration file. git-get can also generate Gitfile from github, gitlab or bitbucket, to have all repositories user has access to."
test: |
system "#{bin}/git-get", "version", "--long"
- name: git-get
repository:
owner: isindir
name: homebrew-git-get
branch: master
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: Eriks Zelenka
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }} - {{.ShortCommit}}"
directory: Formula
homepage: "https://github.com/isindir/git-get"
license: "MIT"
description: "Tool to clone/fetch project repositories an-mass using Gitfile configuration file. git-get can also generate Gitfile from github, gitlab or bitbucket, to have all repositories user has access to."
test: |
system "#{bin}/git-get", "version", "--long"
release:
prerelease: auto

Expand All @@ -46,49 +45,45 @@ release:
header: |
> {{ .Date }}
archives:
- format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
#replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
# arm64: arm64
- format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }}
#replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
# arm64: arm64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"
changelog:
use: github
sort: asc
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Component Upgrade
regexp: "^.*up[(\\w)]*:+.*$"
order: 2
- title: Documentation Update
regexp: "^.*doc[(\\w)]*:+.*$"
order: 3
- title: Pipeline changes
regexp: "^.*pipe[(\\w)]*:+.*$"
order: 4
- title: Other changes
order: 999
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Component Upgrade
regexp: "^.*up[(\\w)]*:+.*$"
order: 2
- title: Documentation Update
regexp: "^.*doc[(\\w)]*:+.*$"
order: 3
- title: Pipeline changes
regexp: "^.*pipe[(\\w)]*:+.*$"
order: 4
- title: Other changes
order: 999
filters:
exclude:
- '^test:'
- '^skip:'
- '^Fix typo'
- '^test:'
- '^skip:'
- '^Fix typo'
8 changes: 4 additions & 4 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# UPDATE_HERE
# https://golang.org/dl/
golang 1.21.8
golang 1.23.4
# https://github.com/goreleaser/goreleaser/releases
goreleaser 1.24.0
goreleaser 2.4.8
# https://github.com/vektra/mockery/releases
mockery 2.42.0
mockery 2.50.0
# https://github.com/caarlos0/svu/releases
svu 1.12.0
svu 2.2.0
2 changes: 1 addition & 1 deletion exec/mocks/ShellRunnerI.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"fmt"
"os"

"github.com/google/go-github/v60/github"
"github.com/google/go-github/v67/github"
log "github.com/sirupsen/logrus"
"golang.org/x/net/context"
"golang.org/x/oauth2"
Expand Down
4 changes: 2 additions & 2 deletions gitlab/mocks/GitGetGitlabI.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 20 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,43 @@ module github.com/isindir/git-get

// UPDATE_HERE
// https://go.dev/dl/
go 1.21
go 1.23.4

require (
github.com/fatih/color v1.16.0
// https://github.com/fatih/color/releases
github.com/fatih/color v1.18.0
// https://github.com/google/go-github/releases
github.com/google/go-github/v60 v60.0.0
github.com/ktrysmt/go-bitbucket v0.9.76
github.com/google/go-github/v67 v67.0.0
// https://github.com/ktrysmt/go-bitbucket/releases
github.com/ktrysmt/go-bitbucket v0.9.81
// https://github.com/sirupsen/logrus/releases
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.9.0
github.com/xanzy/go-gitlab v0.99.0
golang.org/x/net v0.22.0
golang.org/x/oauth2 v0.18.0
// https://github.com/spf13/cobra/releases
github.com/spf13/cobra v1.8.1
// https://github.com/stretchr/testify/releases
github.com/stretchr/testify v1.10.0
// https://github.com/xanzy/go-gitlab/releases
github.com/xanzy/go-gitlab v0.114.0
// https://pkg.go.dev/golang.org/x/net
golang.org/x/net v0.32.0
// https://pkg.go.dev/golang.org/x/oauth2
golang.org/x/oauth2 v0.24.0
// https://gopkg.in/yaml.v3
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.2 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.31.0 // indirect
)
Loading

0 comments on commit 466b5b6

Please sign in to comment.