Upgrading Go or Node.js requires making changes in many different files. See below for a list and explanation for each.
- CircleCi
plutono/build-container
- Appveyor
- Dockerfile
- CircleCI
plutono/build-container
- Appveyor
- Dockerfile
The Plutono project uses Go modules to manage dependencies on external packages. This requires a working Go environment with version 1.11 or greater installed.
Note: Since most developers of Plutono still use the
GOPATH
we need to specifyGO111MODULE=on
to makego mod
andgot get
work as intended. If you have setup Plutono outside of theGOPATH
on your machine you can skipGO111MODULE=on
when running the commands below.
To add or update a new dependency, use the go get
command:
# The GO111MODULE variable can be omitted when the code isn't located in GOPATH.
# Pick the latest tagged release.
GO111MODULE=on go get example.com/some/module/pkg
# Pick a specific version.
GO111MODULE=on go get example.com/some/module/pkg@vX.Y.Z
Tidy up the go.mod
and go.sum
files:
# The GO111MODULE variable can be omitted when the code isn't located in GOPATH.
GO111MODULE=on go mod tidy
You have to commit the changes to go.mod
and go.sum
before submitting the pull request.
Updated using yarn
.
package.json
Our builds run on CircleCI through our build script.
.circleci/config.yml
.
- nodejs
- golang
- plutono/build-container (our custom docker build container)
The main build step (in CircleCI) is built using a custom build container that comes pre-baked with some of the necessary dependencies.
Link: plutono/build-container
- fpm
- nodejs
- golang
- crosscompiling (several compilers)
Master and release builds trigger test runs on Appveyors build environment so that tests will run on Windows.
appveyor.yml
- nodejs
- golang
There is a Docker build for Plutono in the root of the project that allows anyone to build Plutono just using Docker.
Dockerfile
- nodejs
- golang
Please send out a notice in the plutono-dev slack channel when updating Go or Node.js to make it easier for everyone to update their local developer environments.