mirror of
https://github.com/ddworken/hishtory.git
synced 2025-04-29 11:54:45 +02:00
moved client/client.go to hishtory.go to support slsa l3 border
This commit is contained in:
parent
8bb1fd3856
commit
966f73757b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
web/landing/www/binaries/hishtory-linux
|
web/landing/www/binaries/hishtory-linux
|
||||||
|
hishtory
|
||||||
|
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ test:
|
|||||||
HISHTORY_TEST=1 go test -p 1 ./...
|
HISHTORY_TEST=1 go test -p 1 ./...
|
||||||
|
|
||||||
build-binary:
|
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
|
install: build-binary
|
||||||
web/landing/www/binaries/hishtory-linux install
|
web/landing/www/binaries/hishtory-linux install
|
||||||
|
@ -159,7 +159,7 @@ func installHishtory(t *testing.T, userSecret string) string {
|
|||||||
out := RunInteractiveBashCommands(t, `
|
out := RunInteractiveBashCommands(t, `
|
||||||
gvm use go1.17
|
gvm use go1.17
|
||||||
cd /home/david/code/hishtory
|
cd /home/david/code/hishtory
|
||||||
go build -o /tmp/client client/client.go
|
go build -o /tmp/client
|
||||||
/tmp/client install `+userSecret)
|
/tmp/client install `+userSecret)
|
||||||
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
|
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
|
||||||
matches := r.FindStringSubmatch(out)
|
matches := r.FindStringSubmatch(out)
|
||||||
|
Loading…
Reference in New Issue
Block a user