-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update minimal version to go 1.16 (#65)
* update to minimal version to 1.16 * version bump jobs
- Loading branch information
Nate Catelli
authored
May 24, 2022
1 parent
503f8f9
commit 2a7cbf2
Showing
7 changed files
with
77 additions
and
270 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 |
---|---|---|
@@ -1,65 +1,6 @@ | ||
# Update the VARIANT arg in devcontainer.json to pick an Go version | ||
ARG VARIANT=1 | ||
FROM golang:${VARIANT} | ||
ARG VARIANT="1.18-bullseye" | ||
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT} | ||
|
||
# Options for setup script | ||
ARG INSTALL_ZSH="true" | ||
ARG UPGRADE_PACKAGES="false" | ||
ARG USERNAME=vscode | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
|
||
# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies. | ||
COPY library-scripts/*.sh /tmp/library-scripts/ | ||
RUN apt-get update \ | ||
&& /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \ | ||
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts | ||
|
||
# Install Go tools | ||
ARG GO_TOOLS_WITH_MODULES="\ | ||
golang.org/x/tools/gopls \ | ||
honnef.co/go/tools/... \ | ||
golang.org/x/tools/cmd/gorename \ | ||
golang.org/x/tools/cmd/goimports \ | ||
golang.org/x/tools/cmd/guru \ | ||
golang.org/x/lint/golint \ | ||
github.com/mdempsky/gocode \ | ||
github.com/cweill/gotests/... \ | ||
github.com/haya14busa/goplay/cmd/goplay \ | ||
github.com/sqs/goreturns \ | ||
github.com/josharian/impl \ | ||
github.com/davidrjenni/reftools/cmd/fillstruct \ | ||
github.com/uudashr/gopkgs/v2/cmd/gopkgs \ | ||
github.com/ramya-rao-a/go-outline \ | ||
github.com/acroca/go-symbols \ | ||
github.com/godoctor/godoctor \ | ||
github.com/rogpeppe/godef \ | ||
github.com/zmb3/gogetdoc \ | ||
github.com/fatih/gomodifytags \ | ||
github.com/mgechev/revive \ | ||
github.com/go-delve/delve/cmd/dlv" | ||
RUN mkdir -p /tmp/gotools \ | ||
&& cd /tmp/gotools \ | ||
&& export GOPATH=/tmp/gotools \ | ||
# Go tools w/module support | ||
&& export GO111MODULE=on \ | ||
&& (echo "${GO_TOOLS_WITH_MODULES}" | xargs -n 1 go get -x )2>&1 \ | ||
# gocode-gomod | ||
&& export GO111MODULE=auto \ | ||
&& go get -x -d github.com/stamblerre/gocode 2>&1 \ | ||
&& go build -o gocode-gomod github.com/stamblerre/gocode \ | ||
# golangci-lint | ||
&& curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin 2>&1 \ | ||
# Move Go tools into path and clean up | ||
&& mv /tmp/gotools/bin/* /usr/local/bin/ \ | ||
&& mv gocode-gomod /usr/local/bin/ \ | ||
&& rm -rf /tmp/gotools | ||
|
||
ENV GO111MODULE=auto | ||
|
||
# [Optional] Uncomment the next line to use go get to install anything else you need | ||
# RUN go get -x <your-dependency-or-tool> | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 | ||
ARG NODE_VERSION="none" | ||
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi |
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 was deleted.
Oops, something went wrong.
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,18 +1,24 @@ | ||
module github.com/disneystreaming/ssm-helpers | ||
|
||
go 1.13 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/AlecAivazis/survey/v2 v2.0.8 | ||
github.com/aws/aws-sdk-go v1.33.6 | ||
github.com/AlecAivazis/survey/v2 v2.3.4 | ||
github.com/aws/aws-sdk-go v1.44.19 | ||
github.com/disneystreaming/gomux v0.0.0-20200305000114-de122d6df124 | ||
github.com/mattn/go-colorable v0.1.7 // indirect | ||
github.com/go-sql-driver/mysql v1.5.0 // indirect | ||
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect | ||
github.com/kr/pty v1.1.4 // indirect | ||
github.com/mattn/go-colorable v0.1.12 // indirect | ||
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 | ||
github.com/sirupsen/logrus v1.6.0 | ||
github.com/spf13/cobra v1.0.0 | ||
github.com/stretchr/testify v1.6.1 | ||
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 // indirect | ||
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect | ||
golang.org/x/text v0.3.3 // indirect | ||
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/spf13/cobra v1.4.0 | ||
github.com/spf13/viper v1.4.0 // indirect | ||
github.com/stretchr/testify v1.7.1 | ||
golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898 // indirect | ||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect | ||
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 // indirect | ||
) |
Oops, something went wrong.