moved client/client.go to hishtory.go to support slsa l3 border

This commit is contained in:
David Dworken 2022-04-08 21:17:11 -07:00
parent 8bb1fd3856
commit 966f73757b
4 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
web/landing/www/binaries/hishtory-linux
hishtory

View File

@ -2,7 +2,7 @@ test:
HISHTORY_TEST=1 go test -p 1 ./...
build-binary:
go build -trimpath -o web/landing/www/binaries/hishtory-linux -ldflags "-X main.GitCommit=`git rev-list -1 HEAD`" client/client.go
go build -trimpath -o web/landing/www/binaries/hishtory-linux -ldflags "-X main.GitCommit=`git rev-list -1 HEAD`"
install: build-binary
web/landing/www/binaries/hishtory-linux install

View File

@ -159,7 +159,7 @@ func installHishtory(t *testing.T, userSecret string) string {
out := RunInteractiveBashCommands(t, `
gvm use go1.17
cd /home/david/code/hishtory
go build -o /tmp/client client/client.go
go build -o /tmp/client
/tmp/client install `+userSecret)
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
matches := r.FindStringSubmatch(out)