Skip to content

Commit a673149

Browse files
committed
Backport a few patches for "newer Go" support
1 parent 2086324 commit a673149

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
- uses: actions/checkout@v3 # clone Notary upstream repo (used for generating necessary certificates to test against)
1616
with:
1717
repository: 'notaryproject/notary'
18-
ref: 'v0.7.0'
18+
ref: '74ee191c214795fb5e839bca841c7be2030d0002'
1919
path: 'notary-src'
2020
- run: NOTARY_SOURCE="$GITHUB_WORKSPACE/notary-src" ./.test/test.sh

notary-server/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ENV GOFLAGS -mod=vendor
1010
WORKDIR /go/src/$NOTARYPKG
1111
RUN set -eux; \
1212
git clone -b "$TAG" --depth 1 "https://$NOTARYPKG.git" .; \
13+
# https://github.com/notaryproject/notary/pull/1635
14+
git fetch --depth 2 origin efc35b02698644af16f6049c7b585697352451b8; \
15+
git -c user.name=foo -c [email protected] cherry-pick -x efc35b02698644af16f6049c7b585697352451b8; \
16+
# https://github.com/notaryproject/notary/issues/1602 (rough cherry-pick of ca095023296d2d710ad9c6dec019397d46bf8576)
17+
go get github.com/dvsekhvalnov/[email protected]; \
18+
go mod vendor; \
19+
# TODO remove for the next release of Notary (which should include efc35b02698644af16f6049c7b585697352451b8 & ca095023296d2d710ad9c6dec019397d46bf8576)
1320
make SKIPENVCHECK=1 PREFIX=. ./bin/static/notary-server ./bin/static/notary-signer; \
1421
cp -vL ./bin/static/notary-server ./bin/static/notary-signer /; \
1522
/notary-server --version; \

notary-signer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ ENV GOFLAGS -mod=vendor
1010
WORKDIR /go/src/$NOTARYPKG
1111
RUN set -eux; \
1212
git clone -b "$TAG" --depth 1 "https://$NOTARYPKG.git" .; \
13+
# https://github.com/notaryproject/notary/pull/1635
14+
git fetch --depth 2 origin efc35b02698644af16f6049c7b585697352451b8; \
15+
git -c user.name=foo -c [email protected] cherry-pick -x efc35b02698644af16f6049c7b585697352451b8; \
16+
# https://github.com/notaryproject/notary/issues/1602 (rough cherry-pick of ca095023296d2d710ad9c6dec019397d46bf8576)
17+
go get github.com/dvsekhvalnov/[email protected]; \
18+
go mod vendor; \
19+
# TODO remove for the next release of Notary (which should include efc35b02698644af16f6049c7b585697352451b8 & ca095023296d2d710ad9c6dec019397d46bf8576)
1320
make SKIPENVCHECK=1 PREFIX=. ./bin/static/notary-server ./bin/static/notary-signer; \
1421
cp -vL ./bin/static/notary-server ./bin/static/notary-signer /; \
1522
/notary-server --version; \

0 commit comments

Comments
 (0)