Skip to content

Commit a1f3bf1

Browse files
committed
hack/tests/scaffolding: remove unused var and add TODOs
1 parent 1abfa9c commit a1f3bf1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hack/tests/scaffolding/e2e-go-scaffold.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ set -ex
55
source hack/lib/test_lib.sh
66

77
ROOTDIR="$(pwd)"
8-
trap_add 'rm $ROOTDIR/go.mod || true' EXIT
9-
GOTMP="$(mktemp -d)"
10-
trap_add 'rm -rf $GOTMP' EXIT
11-
BASEPROJECTDIR="/tmp/go-e2e-scaffold"
8+
# TODO: remove once PR 1566 is merged
9+
trap_add 'rm -f $ROOTDIR/go.mod' EXIT
1210
IMAGE_NAME="quay.io/example/memcached-operator:v0.0.1"
1311

1412
rm -rf $BASEPROJECTDIR

hack/tests/scaffolding/scaffold-memcached.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func main() {
7777

7878
replace := getGoModReplace(localSDKPath)
7979
if replace.repo != sdkRepo {
80+
// TODO: Remove when PR 1566 is merged
8081
if replace.isLocal {
8182
// A hacky way to get local module substitution to work is to write a
8283
// stub go.mod into the local SDK repo referred to in

0 commit comments

Comments
 (0)