-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Go 1.22 and update deps (#78)
Update to Go 1.22. Update dependencies. Bind to 127.0.0.1 when testing. Add dependabot.yml config to keep GH actions updated. Remove usage of GO111MODULE=off. Update to https://github.com/updatecli/updatecli-action/releases/tag/v2.56.0.
- Loading branch information
1 parent
8c939ec
commit 8f45708
Showing
10 changed files
with
155 additions
and
129 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every week | ||
interval: "weekly" | ||
open-pull-requests-limit: 2 |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.20.8 | ||
1.22.1 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.8 as builder | ||
FROM golang:1.22.1 as builder | ||
|
||
RUN apt-get update \ | ||
&& apt-get dist-upgrade -y \ | ||
|
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 |
---|---|---|
@@ -1,21 +1,18 @@ | ||
LICENSE := ASL2-Short | ||
VERSION ?= local | ||
|
||
check-fmt: goimports go-licenser | ||
@go-licenser -d -license ${LICENSE} | ||
@goimports -l -e -local github.com/elastic . | read && echo "Code differs from gofmt's style. Run 'gofmt -w .'" 1>&2 && exit 1 || true | ||
GOIMPORTS := go run golang.org/x/tools/cmd/goimports@latest | ||
GOLICENSER := go run github.com/elastic/go-licenser@latest | ||
|
||
check-fmt: | ||
@${GOLICENSER} -d -license ${LICENSE} | ||
@${GOIMPORTS} -l -e -local github.com/elastic . | read && echo "Code differs from gofmt's style. Run 'gofmt -w .'" 1>&2 && exit 1 || true | ||
|
||
docker: | ||
docker build -t docker.elastic.co/observability/stream:${VERSION} . | ||
|
||
fmt: goimports go-licenser | ||
go-licenser -license ${LICENSE} | ||
goimports -l -w -local github.com/elastic . | ||
|
||
goimports: | ||
GO111MODULE=off go get golang.org/x/tools/cmd/goimports | ||
|
||
go-licenser: | ||
GO111MODULE=off go get github.com/elastic/go-licenser | ||
fmt: | ||
${GOLICENSER} -license ${LICENSE} | ||
${GOIMPORTS} -l -w -local github.com/elastic . | ||
|
||
.PHONY: check-fmt docker fmt goimports go-licenser | ||
.PHONY: check-fmt docker fmt |
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
Oops, something went wrong.