-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request #54: Update go version to 1.20
Merge in AW/go-starter from aj/RES-470-update-to-go-1.20 to master * commit '1df89381f9adbcc7f20223344ed1181d0b2f3fa4': add info about renaming unused params to changelog update changelog remove duplicated entry from changelog fix go version in changelog make LoggerWithConfig output param optional update changelog for logger changes use context in ApplyDump log Caller only if requested update changelog with devcontainer info add tag 2023-03-03 to changelog fix CVE-2022-41723 vulnerability log with Caller by default update changelog rename unused function params update go version to 1.20 update .devcontainer syntax
- Loading branch information
Showing
13 changed files
with
187 additions
and
99 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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# --- https://hub.docker.com/_/golang | ||
# --- https://github.com/microsoft/vscode-remote-try-go/blob/master/.devcontainer/Dockerfile | ||
### ----------------------- | ||
FROM golang:1.19.3-bullseye AS development | ||
FROM golang:1.20.3-bullseye AS development | ||
|
||
# Avoid warnings by switching to noninteractive | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
@@ -28,11 +28,11 @@ RUN apt-get update \ | |
# Mandadory minimal linux packages | ||
# Installed at development stage and app stage | ||
# Do not forget to add mandadory linux packages to the final app Dockerfile stage below! | ||
# | ||
# | ||
# -- START MANDADORY -- | ||
ca-certificates \ | ||
# --- END MANDADORY --- | ||
# | ||
# | ||
# Development specific packages | ||
# Only installed at development stage and NOT available in the final Docker stage | ||
# based upon | ||
|
@@ -60,7 +60,7 @@ RUN apt-get update \ | |
tmux \ | ||
rsync \ | ||
# --- END DEVELOPMENT --- | ||
# | ||
# | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
@@ -84,7 +84,7 @@ RUN mkdir -p /tmp/pgFormatter \ | |
&& cd pgFormatter-5.3 \ | ||
&& perl Makefile.PL \ | ||
&& make && make install \ | ||
&& rm -rf /tmp/pgFormatter | ||
&& rm -rf /tmp/pgFormatter | ||
|
||
# go gotestsum: (this package should NOT be installed via go get) | ||
# https://github.com/gotestyourself/gotestsum/releases | ||
|
@@ -94,22 +94,22 @@ RUN mkdir -p /tmp/gotestsum \ | |
&& wget "https://github.com/gotestyourself/gotestsum/releases/download/v1.9.0/gotestsum_1.9.0_linux_${ARCH}.tar.gz" \ | ||
&& tar xzf "gotestsum_1.9.0_linux_${ARCH}.tar.gz" \ | ||
&& cp gotestsum /usr/local/bin/gotestsum \ | ||
&& rm -rf /tmp/gotestsum | ||
&& rm -rf /tmp/gotestsum | ||
|
||
# go linting: (this package should NOT be installed via go get) | ||
# https://github.com/golangci/golangci-lint#binary | ||
# https://github.com/golangci/golangci-lint/releases | ||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \ | ||
| sh -s -- -b $(go env GOPATH)/bin v1.50.1 | ||
| sh -s -- -b $(go env GOPATH)/bin v1.52.2 | ||
|
||
# go swagger: (this package should NOT be installed via go get) | ||
# go swagger: (this package should NOT be installed via go get) | ||
# https://github.com/go-swagger/go-swagger/releases | ||
RUN ARCH="$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)" \ | ||
&& curl -o /usr/local/bin/swagger -L'#' \ | ||
"https://github.com/go-swagger/go-swagger/releases/download/v0.29.0/swagger_linux_${ARCH}" \ | ||
&& chmod +x /usr/local/bin/swagger | ||
|
||
# lichen: go license util | ||
# lichen: go license util | ||
# TODO: Install from static binary as soon as it becomes available. | ||
# https://github.com/uw-labs/lichen/tags | ||
RUN go install github.com/uw-labs/[email protected] | ||
|
@@ -136,7 +136,7 @@ RUN mkdir -p /tmp/yq \ | |
&& wget "https://github.com/mikefarah/yq/releases/download/v4.30.5/yq_linux_${ARCH}.tar.gz" \ | ||
&& tar xzf "yq_linux_${ARCH}.tar.gz" \ | ||
&& cp "yq_linux_${ARCH}" /usr/local/bin/yq \ | ||
&& rm -rf /tmp/yq | ||
&& rm -rf /tmp/yq | ||
|
||
# gsdev | ||
# The sole purpose of the "gsdev" cli util is to provide a handy short command for the following (all args are passed): | ||
|
@@ -145,7 +145,7 @@ RUN printf '#!/bin/bash\nset -Eeo pipefail\ncd /app && go run -tags scripts ./sc | |
|
||
# linux permissions / vscode support: Add user to avoid linux file permission issues | ||
# Detail: Inside the container, any mounted files/folders will have the exact same permissions | ||
# as outside the container - including the owner user ID (UID) and group ID (GID). | ||
# as outside the container - including the owner user ID (UID) and group ID (GID). | ||
# Because of this, your container user will either need to have the same UID or be in a group with the same GID. | ||
# The actual name of the user / group does not matter. The first user on a machine typically gets a UID of 1000, | ||
# so most containers use this as the ID of the user to try to avoid this problem. | ||
|
@@ -170,11 +170,11 @@ RUN mkdir -p /home/$USERNAME/.vscode-server/extensions \ | |
/home/$USERNAME/.vscode-server-insiders | ||
|
||
# linux permissions / vscode support: chown $GOPATH so $USERNAME can directly work with it | ||
# Note that this should be the final step after installing all build deps | ||
# Note that this should be the final step after installing all build deps | ||
RUN mkdir -p /$GOPATH/pkg && chown -R $USERNAME /$GOPATH | ||
|
||
# $GOBIN is where our own compiled binaries will live and other go.mod / VSCode binaries will be installed. | ||
# It should always come AFTER our other $PATH segments and should be earliest targeted in stage "builder", | ||
# It should always come AFTER our other $PATH segments and should be earliest targeted in stage "builder", | ||
# as /app/bin will the shadowed by a volume mount via docker-compose! | ||
# E.g. "which golangci-lint" should report "/go/bin" not "/app/bin" (where VSCode will place it). | ||
# https://github.com/go-modules-by-example/index/blob/master/010_tools/README.md#walk-through | ||
|
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,6 +1,6 @@ | ||
module allaboutapps.dev/aw/go-starter | ||
|
||
go 1.19 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/BurntSushi/toml v1.2.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
Oops, something went wrong.