build: fix docker build on main (#18538)
This commit is contained in:
parent
8644e6b158
commit
6ca0b2d1aa
15
Dockerfile
15
Dockerfile
@ -23,10 +23,21 @@ WORKDIR /go/src/github.com/cosmos/cosmos-sdk
|
||||
|
||||
# optimization: if go.sum didn't change, docker will use cached image
|
||||
COPY go.mod go.sum ./
|
||||
COPY math/go.mod math/go.sum ./math/
|
||||
COPY api/go.mod api/go.sum ./api/
|
||||
COPY core/go.mod core/go.sum ./core/
|
||||
COPY collections/go.mod collections/go.sum ./collections/
|
||||
COPY store/go.mod store/go.sum ./store/
|
||||
COPY log/go.mod log/go.sum ./log/
|
||||
|
||||
COPY x/tx/go.mod x/tx/go.sum /x/tx/
|
||||
COPY x/protocolpool/go.mod x/protocolpool/go.sum ./x/protocolpool/
|
||||
COPY x/gov/go.mod x/gov/go.sum ./x/gov/
|
||||
COPY x/distribution/go.mod x/distribution/go.sum ./x/distribution/
|
||||
COPY x/slashing/go.mod x/slashing/go.sum ./x/slashing/
|
||||
COPY x/staking/go.mod x/staking/go.sum ./x/staking/
|
||||
COPY x/auth/go.mod x/auth/go.sum ./x/auth/
|
||||
COPY x/authz/go.mod x/authz/go.sum ./x/authz/
|
||||
COPY x/bank/go.mod x/bank/go.sum ./x/bank/
|
||||
COPY x/mint/go.mod x/mint/go.sum ./x/mint/
|
||||
RUN go mod download
|
||||
|
||||
# Add source files
|
||||
|
||||
@ -29,11 +29,12 @@ v1.0.0-beta1 → v1.0.0-beta2 → ... → v1.0.0-rc1 → v1.0.0-rc2 → ... →
|
||||
* Create release notes, in `RELEASE_NOTES.md`, highlighting the new features and changes in the version. This is needed so the bot knows which entries to add to the release page on GitHub.
|
||||
* Additionally verify that the `UPGRADING.md` file is up to date and contains all the necessary information for upgrading to the new version.
|
||||
* Remove GitHub workflows that should not be in the release branch
|
||||
* `deploy-docs.yml`: must be removed to avoid duplicate documentation deployment.
|
||||
* `test.yml`: All standalone go module tests should be removed (expect `./simapp`, and `./tests` and SDK tests).
|
||||
* `test.yml`: All standalone go module tests should be removed (expect `./simapp`, and `./tests`, SDK and modules tests).
|
||||
* These packages are tracked and tested directly on main.
|
||||
* `build.yml`: Only the SDK and SimApp needs to be built on release branches.
|
||||
* Tooling is tracked and tested directly on main.
|
||||
* This does not apply for tooling depending on the SDK (e.g. `confix`)
|
||||
* Update `Dockerfile` to not use latest go.mod and go.sum files.
|
||||
* Create a new annotated git tag for a release candidate (eg: `git tag -a v1.1.0-rc1`) in the release branch.
|
||||
* from this point we unfreeze main.
|
||||
* the SDK teams collaborate and do their best to run testnets in order to validate the release.
|
||||
|
||||
@ -5,14 +5,11 @@ RUN go install github.com/go-delve/delve/cmd/dlv@latest
|
||||
|
||||
WORKDIR /work
|
||||
COPY go.mod go.sum /work/
|
||||
COPY errors/go.mod errors/go.sum /work/errors/
|
||||
COPY math/go.mod math/go.sum /work/math/
|
||||
COPY api/go.mod api/go.sum /work/api/
|
||||
COPY core/go.mod core/go.sum /work/core/
|
||||
COPY depinject/go.mod depinject/go.sum /work/depinject/
|
||||
COPY collections/go.mod collections/go.sum /work/collections/
|
||||
COPY store/go.mod store/go.sum /work/store/
|
||||
COPY log/go.mod log/go.sum /work/log/
|
||||
COPY x/tx/go.mod x/tx/go.sum /work/x/tx/
|
||||
RUN go mod download
|
||||
|
||||
|
||||
@ -4,14 +4,11 @@ RUN apk add build-base git linux-headers
|
||||
|
||||
WORKDIR /work
|
||||
COPY go.mod go.sum /work/
|
||||
COPY errors/go.mod errors/go.sum /work/errors/
|
||||
COPY math/go.mod math/go.sum /work/math/
|
||||
COPY api/go.mod api/go.sum /work/api/
|
||||
COPY core/go.mod core/go.sum /work/core/
|
||||
COPY depinject/go.mod depinject/go.sum /work/depinject/
|
||||
COPY collections/go.mod collections/go.sum /work/collections/
|
||||
COPY store/go.mod store/go.sum /work/store/
|
||||
COPY log/go.mod log/go.sum /work/log/
|
||||
COPY x/tx/go.mod x/tx/go.sum /work/x/tx/
|
||||
COPY x/protocolpool/go.mod x/protocolpool/go.sum /work/x/protocolpool/
|
||||
COPY x/gov/go.mod x/gov/go.sum /work/x/gov/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user