Skip to content

Commit

Permalink
Merge pull request #119 from orange-cloudfoundry/update-go-version
Browse files Browse the repository at this point in the history
update go version and bump dependancies
  • Loading branch information
loiseaualexandre authored Aug 21, 2024
2 parents 96e9f8a + 344e65d commit ad5005a
Show file tree
Hide file tree
Showing 19 changed files with 192 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: set up go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: "1.22"

- name: cache go modules
uses: actions/cache@v4
Expand Down
2 changes: 2 additions & 0 deletions dist/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Changelog
* 96e9f8a002117f296b8d8b4eb703146a5065d3dd Bump github.com/gorilla/sessions from 1.3.0 to 1.4.0 (#118)
Binary file added dist/aggregadantur_1.65.0_darwin_amd64.tar.gz
Binary file not shown.
Binary file added dist/aggregadantur_1.65.0_linux_amd64.tar.gz
Binary file not shown.
1 change: 1 addition & 0 deletions dist/artifacts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"metadata.json","path":"dist/metadata.json","internal_type":30,"type":"Metadata"},{"name":"aggregadantur","path":"dist/binary_linux_amd64_v1/aggregadantur","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":4,"type":"Binary","extra":{"Binary":"aggregadantur","Ext":"","ID":"binary"}},{"name":"aggregadantur","path":"dist/binary_darwin_amd64_v1/aggregadantur","goos":"darwin","goarch":"amd64","goamd64":"v1","internal_type":4,"type":"Binary","extra":{"Binary":"aggregadantur","Ext":"","ID":"binary"}},{"name":"aggregadantur_1.65.0_darwin_amd64.tar.gz","path":"dist/aggregadantur_1.65.0_darwin_amd64.tar.gz","goos":"darwin","goarch":"amd64","goamd64":"v1","internal_type":1,"type":"Archive","extra":{"Binaries":["aggregadantur"],"Checksum":"sha256:c540156181d8af51f0151e93ef630a8c343f9b24424501c87e1e5375298c9162","Format":"tar.gz","ID":"archives","Replaces":null,"WrappedIn":"aggregadantur_1.65.0_darwin_amd64"}},{"name":"aggregadantur_1.65.0_linux_amd64.tar.gz","path":"dist/aggregadantur_1.65.0_linux_amd64.tar.gz","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":1,"type":"Archive","extra":{"Binaries":["aggregadantur"],"Checksum":"sha256:8aaaa45aeae1e7171bc7aeb4dcd1fc5fb3e2e93638f10574f89a94c7055117e7","Format":"tar.gz","ID":"archives","Replaces":null,"WrappedIn":"aggregadantur_1.65.0_linux_amd64"}},{"name":"checksums.txt","path":"dist/checksums.txt","internal_type":12,"type":"Checksum","extra":{}}]
Binary file added dist/binary_darwin_amd64_v1/aggregadantur
Binary file not shown.
Binary file added dist/binary_linux_amd64_v1/aggregadantur
Binary file not shown.
2 changes: 2 additions & 0 deletions dist/checksums.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
c540156181d8af51f0151e93ef630a8c343f9b24424501c87e1e5375298c9162 aggregadantur_1.65.0_darwin_amd64.tar.gz
8aaaa45aeae1e7171bc7aeb4dcd1fc5fb3e2e93638f10574f89a94c7055117e7 aggregadantur_1.65.0_linux_amd64.tar.gz
119 changes: 119 additions & 0 deletions dist/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
project_name: aggregadantur
release:
github:
owner: orange-cloudfoundry
name: aggregadantur
prerelease: auto
name_template: '{{.Tag}}'
builds:
- id: binary
goos:
- linux
- darwin
goarch:
- amd64
goarm:
- "6"
gomips:
- hardfloat
goamd64:
- v1
targets:
- linux_amd64_v1
- darwin_amd64_v1
dir: ./cmd/aggregadantur
main: .
binary: aggregadantur
builder: go
gobinary: go
command: build
ldflags:
- -s
- -w
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.FullCommit}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser={{.Env.USER}}
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
env:
- CGO_ENABLED=0
archives:
- id: archives
builds:
- binary
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
wrap_in_directory: "true"
files:
- src: LICENSE*
- src: README*
- src: CHANGELOG*
- src: docs/*
- src: assets/*
- src: static/*
- src: templates/*
snapshot:
name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
checksum:
name_template: checksums.txt
algorithm: sha256
changelog:
format: '{{ .SHA }}: {{ .Message }} ({{ with .AuthorUsername }}@{{ . }}{{ else }}{{ .AuthorName }} <{{ .AuthorEmail }}>{{ end }})'
dist: dist
env_files:
github_token: ~/.config/goreleaser/github_token
gitlab_token: ~/.config/goreleaser/gitlab_token
gitea_token: ~/.config/goreleaser/gitea_token
source:
name_template: '{{ .ProjectName }}-{{ .Version }}'
format: tar.gz
gomod:
gobinary: go
announce:
twitter:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
mastodon:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
server: ""
reddit:
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
url_template: '{{ .ReleaseURL }}'
slack:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
username: GoReleaser
discord:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
author: GoReleaser
color: "3888754"
icon_url: https://goreleaser.com/static/avatar.png
teams:
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
color: '#2D313E'
icon_url: https://goreleaser.com/static/avatar.png
smtp:
subject_template: '{{ .ProjectName }} {{ .Tag }} is out!'
body_template: 'You can view details from: {{ .ReleaseURL }}'
mattermost:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
username: GoReleaser
linkedin:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
telegram:
message_template: '{{ mdv2escape .ProjectName }} {{ mdv2escape .Tag }} is out{{ mdv2escape "!" }} Check it out at {{ mdv2escape .ReleaseURL }}'
parse_mode: MarkdownV2
webhook:
message_template: '{ "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}'
content_type: application/json; charset=utf-8
opencollective:
title_template: '{{ .Tag }}'
message_template: '{{ .ProjectName }} {{ .Tag }} is out!<br/>Check it out at <a href="{{ .ReleaseURL }}">{{ .ReleaseURL }}</a>'
bluesky:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
git:
tag_sort: -version:refname
github_urls:
download: https://github.com
gitlab_urls:
download: https://gitlab.com
1 change: 1 addition & 0 deletions dist/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"project_name":"aggregadantur","tag":"v1.65.0","previous_tag":"v1.64.0","version":"1.65.0","commit":"96e9f8a002117f296b8d8b4eb703146a5065d3dd","date":"2024-08-21T17:07:20.514908897+02:00","runtime":{"goos":"linux","goarch":"amd64"}}
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
module github.com/orange-cloudfoundry/aggregadantur

go 1.22.3
toolchain go1.23.0
go 1.22.6

require (
github.com/alecthomas/kingpin/v2 v2.4.0
github.com/gobwas/glob v0.2.3
github.com/golang-jwt/jwt/v4 v4.5.0
github.com/gorilla/mux v1.8.1
github.com/gorilla/sessions v1.4.0
github.com/gorilla/sessions v1.3.0
github.com/onsi/ginkgo/v2 v2.20.0
github.com/onsi/gomega v1.34.1
github.com/prometheus/common v0.55.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -789,8 +789,8 @@ github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kXD8ePA=
github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo=
github.com/gorilla/sessions v1.4.0 h1:kpIYOp/oi6MG/p5PgxApU8srsSw9tuFbt46Lt7auzqQ=
github.com/gorilla/sessions v1.4.0/go.mod h1:FLWm50oby91+hl7p/wRxDth9bWSuk0qVL2emc7lT5ik=
github.com/gorilla/sessions v1.3.0 h1:XYlkq7KcpOB2ZhHBPv5WpjMIxrQosiZanfoy1HLZFzg=
github.com/gorilla/sessions v1.3.0/go.mod h1:ePLdVu+jbEgHH+KWw8I1z2wqd0BAdAQh/8LRvBeoNcQ=
github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY=
github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY=
github.com/gravitational/trace v1.1.16-0.20220114165159-14a9a7dd6aaf/go.mod h1:zXqxTI6jXDdKnlf8s+nT+3c8LrwUEy3yNpO4XJL90lA=
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/gorilla/sessions/LICENSE

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

6 changes: 1 addition & 5 deletions vendor/github.com/gorilla/sessions/README.md

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

21 changes: 9 additions & 12 deletions vendor/github.com/gorilla/sessions/cookie.go

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

21 changes: 21 additions & 0 deletions vendor/github.com/gorilla/sessions/cookie_go111.go

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

15 changes: 5 additions & 10 deletions vendor/github.com/gorilla/sessions/options.go

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

23 changes: 23 additions & 0 deletions vendor/github.com/gorilla/sessions/options_go111.go

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

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ github.com/gorilla/mux
# github.com/gorilla/securecookie v1.1.2
## explicit; go 1.20
github.com/gorilla/securecookie
# github.com/gorilla/sessions v1.4.0
## explicit; go 1.23
# github.com/gorilla/sessions v1.3.0
## explicit; go 1.20
github.com/gorilla/sessions
# github.com/gorilla/websocket v1.5.1
## explicit; go 1.20
Expand Down

0 comments on commit ad5005a

Please sign in to comment.