Skip to content

Commit

Permalink
updating to align with move of timestamper interface
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Jan 22, 2024
1 parent 06031da commit 7685713
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"github.com/in-toto/go-witness/attestation/material"

Check failure on line 27 in cmd/run.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

missing go.sum entry for module providing package github.com/in-toto/go-witness/attestation/material (imported by github.com/in-toto/witness/cmd); to add:

Check failure on line 27 in cmd/run.go

View workflow job for this annotation

GitHub Actions / sast / witness

missing go.sum entry for module providing package github.com/in-toto/go-witness/attestation/material (imported by github.com/in-toto/witness/cmd); to add:
"github.com/in-toto/go-witness/attestation/product"

Check failure on line 28 in cmd/run.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

missing go.sum entry for module providing package github.com/in-toto/go-witness/attestation/product (imported by github.com/in-toto/witness/cmd); to add:

Check failure on line 28 in cmd/run.go

View workflow job for this annotation

GitHub Actions / sast / witness

missing go.sum entry for module providing package github.com/in-toto/go-witness/attestation/product (imported by github.com/in-toto/witness/cmd); to add:
"github.com/in-toto/go-witness/cryptoutil"
"github.com/in-toto/go-witness/dsse"
"github.com/in-toto/go-witness/log"
"github.com/in-toto/go-witness/registry"

Check failure on line 31 in cmd/run.go

View workflow job for this annotation

GitHub Actions / unit-test / witness

missing go.sum entry for module providing package github.com/in-toto/go-witness/registry (imported by github.com/in-toto/witness/cmd); to add:

Check failure on line 31 in cmd/run.go

View workflow job for this annotation

GitHub Actions / sast / witness

missing go.sum entry for module providing package github.com/in-toto/go-witness/registry (imported by github.com/in-toto/witness/cmd); to add:
"github.com/in-toto/go-witness/timestamp"
Expand Down Expand Up @@ -75,7 +74,7 @@ func runRun(ctx context.Context, ro options.RunOptions, args []string, signers .
return fmt.Errorf("failed to open out file: %w", err)
}

timestampers := []dsse.Timestamper{}
timestampers := []timestamp.Timestamper{}
for _, url := range ro.TimestampServers {
timestampers = append(timestampers, timestamp.NewTimestamper(timestamp.TimestampWithUrl(url)))
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func runSign(ctx context.Context, so options.SignOptions, signers ...cryptoutil.
return fmt.Errorf("no signers found")
}

timestampers := []dsse.Timestamper{}
timestampers := []timestamp.Timestamper{}
for _, url := range so.TimestampServers {
timestampers = append(timestampers, timestamp.NewTimestamper(timestamp.TimestampWithUrl(url)))
}
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/in-toto/archivista v0.2.0 h1:FViuHMVVETborvOqlmSYdROY8RmX3CO0V0MOhU/Rl20=
github.com/in-toto/archivista v0.2.0/go.mod h1:qt9uN4TkHWUgR5A2wxRqQIBizSl32P2nI2AjESskkr0=
github.com/in-toto/go-witness v0.2.1 h1:eAxMBWUPbz3oPU3lsfEYi/Kdj6weej2umm59bOXPJSU=
github.com/in-toto/go-witness v0.2.1/go.mod h1:xURJVj4QRD3xnzOJps7gT0pMCFPpAHcPqDC3EyuLuUE=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
Expand Down

0 comments on commit 7685713

Please sign in to comment.