From 09a97fbbf45326c843391d78e597dfe4edfddee2 Mon Sep 17 00:00:00 2001 From: Andrew LeFevre Date: Sat, 23 Jul 2022 17:27:55 -0400 Subject: [PATCH] force implant building tests to run offline, document the need to keep the implant vendor dir updated --- go-tests.sh | 1 + implant/README.md | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/go-tests.sh b/go-tests.sh index c7fbe43110..143abafc65 100755 --- a/go-tests.sh +++ b/go-tests.sh @@ -149,6 +149,7 @@ else fi # server / generate +export GOPROXY=off if go test -tags=server,$TAGS ./server/generate -timeout 6h ; then : else diff --git a/implant/README.md b/implant/README.md index d174b96a83..70344bb5e7 100644 --- a/implant/README.md +++ b/implant/README.md @@ -1,5 +1,5 @@ Implant -======== +======= This directory contains the code for Sliver's implant, implant source code is dynamically rendered at runtime via the `generate` command. The code generation inserts the per-binary @@ -11,3 +11,9 @@ that will be supported on different platforms. Platform agnostic code is implemented in `_generic.go` files, and can be compiled for any valid Go compiler target but only contains very generic commands/features. +Development +=========== + +Before committing any changes to any implant files, run `go generate` in this directory. This +will ensure the vendor directory is kept up to date so offline implant builds will function +correctly.