Skip to content

Commit f6672cd

Browse files
authored
chore(build): use go1.14.x (#1164)
<!-- Provide summary of changes --> <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, 77" --> By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. Bump build go build runtime to latest release series, go1.14.x
1 parent 3ebc845 commit f6672cd

14 files changed

Lines changed: 27 additions & 32 deletions

File tree

CONTRIBUTING.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Thanks for your interest in contributing to the AWS Copilot CLI! 💖
44

5-
This document describes how to set up a development environment and submit your contributions.
5+
This document describes how to set up a development environment and submit your contributions.
66
Please read it over and let us know if it's not up-to-date (or, even better, submit a PR with your corrections 😉).
77

88
- [Development setup](#development-setup)
@@ -20,7 +20,7 @@ Please read it over and let us know if it's not up-to-date (or, even better, sub
2020

2121
### Environment
2222

23-
- Make sure you are using Go 1.13 (`go version`).
23+
- Make sure you are using Go 1.14 (`go version`).
2424
- Fork the repository.
2525
- Clone your forked repository locally.
2626
- We use Go Modules to manage dependencies, so you can develop outside of your $GOPATH.
@@ -37,17 +37,17 @@ From the repository root run:
3737

3838
There are three different types of testing done on the AWS Copilot CLI.
3939

40-
**Unit tests** makes up the majority of the testing and new code should include unit tests.
41-
Ideally, these unit tests will be in the same package as the file they're testing and have full coverage (or as much is practical within a unit test).
40+
**Unit tests** makes up the majority of the testing and new code should include unit tests.
41+
Ideally, these unit tests will be in the same package as the file they're testing and have full coverage (or as much is practical within a unit test).
4242
Unit tests shouldn't make any network calls.
4343

44-
**Integration tests** are rarer and test the CLI's integration with remote services, such as the file system, CloudFormation, or SSM.
44+
**Integration tests** are rarer and test the CLI's integration with remote services, such as the file system, CloudFormation, or SSM.
4545
Our integration tests ensure that we can call these remote services and get the results we expect.
4646

47-
**End to End tests** run the CLI in a container and test the actual commands - including spinning and tearing down remote resources (like ECS clusters and VPCs).
48-
These tests are the most comprehensive and run on both Windows and Linux build fleets.
49-
Feel free to run these tests - but they require two AWS accounts to run in, so be mindful that resources will be created and destroyed.
50-
You'll need three [named profiles](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html): `default`, `e2etestenv` and `e2eprodenv`.
47+
**End to End tests** run the CLI in a container and test the actual commands - including spinning and tearing down remote resources (like ECS clusters and VPCs).
48+
These tests are the most comprehensive and run on both Windows and Linux build fleets.
49+
Feel free to run these tests - but they require two AWS accounts to run in, so be mindful that resources will be created and destroyed.
50+
You'll need three [named profiles](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html): `default`, `e2etestenv` and `e2eprodenv`.
5151
Each e2e profile needs to be configured for a different AWS account and a different region than the other e2e profiles.
5252

5353
Below are the different commands which can be run in the root of the project directory.
@@ -65,17 +65,17 @@ Often times, it's helpful to generate mocks to make unit-testing easier and more
6565

6666
## Adding new dependencies
6767

68-
In general, we discourage adding new dependencies to the AWS Copilot CLI. If there's a module you think the CLI could benefit from, first open a PR with your proposal.
68+
In general, we discourage adding new dependencies to the AWS Copilot CLI. If there's a module you think the CLI could benefit from, first open a PR with your proposal.
6969
We'll evaluate the dependency and the use case and decide on the next steps. To evaluate if we need to add the dependency please take a look at [https://research.swtch.com/deps](https://research.swtch.com/deps).
7070

7171
## Where should I start?
7272

73-
We're so excited you want to contribute to the CLI! We welcome all PRs and will try to get to them as soon as possible.
73+
We're so excited you want to contribute to the CLI! We welcome all PRs and will try to get to them as soon as possible.
7474
The best place to start, though, is with filing an issue first. Filing an issue gives us some time to chat about the code you're keen on writing, and make sure that it's not already being worked on, or has already been discussed.
7575

7676
You can also check out our [issues queue](https://github.com/aws/copilot-cli/issues) to see all the known issues - this is a really great place to start.
7777

78-
If you want to get your feet wet, check out issues tagged with [good first issue](https://github.com/aws/copilot-cli/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
78+
If you want to get your feet wet, check out issues tagged with [good first issue](https://github.com/aws/copilot-cli/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
7979
These issues are great for folks who are looking to get started, but not sure where to start 😁.
8080

8181
## Contributing code

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.13
1+
FROM golang:1.14
22
# We need to have both nodejs and go to build the binaries.
33
# We could use multi-stage builds but that would require significantly changing our Makefile.
44
RUN apt-get update

buildspec-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 0.2
33
phases:
44
install:
55
runtime-versions:
6-
golang: 1.13
6+
golang: 1.14
77
nodejs: 10
88
build:
99
commands:

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 0.2
33
phases:
44
install:
55
runtime-versions:
6-
golang: 1.13
6+
golang: 1.14
77
pre_build:
88
commands:
99
- echo "cd into $CODEBUILD_SRC_DIR"

buildspec_integ.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ version: 0.2
33
phases:
44
install:
55
runtime-versions:
6-
golang: 1.13
6+
golang: 1.14
77
build:
88
commands:
99
- echo "Git commit hash for this revision:"
1010
- echo `git rev-parse HEAD` # Do not delete; for pipeline logging purposes
1111
artifacts:
12-
files:
13-
- "**/*"
14-
12+
files:
13+
- "**/*"

e2e/addons/hello/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# We specify the base image we need for our
22
# go application
3-
FROM golang:1.13 AS builder
3+
FROM golang:1.14 AS builder
44
# We create an /app directory within our
55
# image that will hold our application source
66
# files
@@ -30,4 +30,3 @@ RUN chmod +x ./api
3030
ENTRYPOINT ["./api"]
3131
# The service runs on port 80
3232
EXPOSE 80
33-

e2e/addons/hello/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module hello
22

3-
go 1.13
3+
go 1.14
44

55
require (
66
github.com/aws/aws-sdk-go v1.29.22 // indirect

e2e/multi-svc-app/back-end/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# We specify the base image we need for our
22
# go application
3-
FROM golang:1.13 AS builder
3+
FROM golang:1.14 AS builder
44
# We create an /app directory within our
55
# image that will hold our application source
66
# files
@@ -30,4 +30,3 @@ RUN chmod +x ./e2e-service
3030
ENTRYPOINT ["./e2e-service"]
3131
# The service runs on port 80
3232
EXPOSE 80
33-

e2e/multi-svc-app/back-end/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/aws/copilot-cli/e2e/multi-app-project/back-end
22

3-
go 1.13
3+
go 1.14
44

55
require github.com/julienschmidt/httprouter v1.3.0 // indirect

e2e/multi-svc-app/front-end/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# We specify the base image we need for our
22
# go application
3-
FROM golang:1.13 AS builder
3+
FROM golang:1.14 AS builder
44
# We create an /app directory within our
55
# image that will hold our application source
66
# files
@@ -30,4 +30,3 @@ RUN chmod +x ./e2e-service
3030
ENTRYPOINT ["./e2e-service"]
3131
# The service runs on port 80
3232
EXPOSE 80
33-

0 commit comments

Comments
 (0)