diff --git a/cmd/vela-downstream/plugin.go b/cmd/vela-downstream/plugin.go index 28f173d..00455a8 100644 --- a/cmd/vela-downstream/plugin.go +++ b/cmd/vela-downstream/plugin.go @@ -4,6 +4,7 @@ package main import ( "fmt" + "github.com/go-vela/server/api/types" "strings" "time" @@ -45,7 +46,7 @@ func (p *Plugin) Exec() error { // iterate through each repo from provided configuration for _, repo := range repos { // create new build type to store last successful build - build := library.Build{} + build := types.Build{} logrus.Infof("listing last 500 builds for %s", repo.GetFullName()) @@ -65,7 +66,7 @@ func (p *Plugin) Exec() error { } // create new slice of builds to store API results - builds := []library.Build{} + builds := []types.Build{} // loop to capture *ALL* the builds for { diff --git a/go.mod b/go.mod index 18d15b1..c324029 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ toolchain go1.22.6 require ( github.com/Masterminds/semver/v3 v3.2.1 github.com/go-vela/sdk-go v0.24.0 + github.com/go-vela/server v0.24.1 github.com/go-vela/types v0.24.0 github.com/joho/godotenv v1.5.1 github.com/sirupsen/logrus v1.9.3 @@ -20,7 +21,6 @@ require ( github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect github.com/drone/envsubst v1.0.3 // indirect github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-vela/server v0.24.1 // indirect github.com/goccy/go-json v0.10.3 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/go-querystring v1.1.0 // indirect