update
This commit is contained in:
10
tests/thirdparty/config.go
vendored
10
tests/thirdparty/config.go
vendored
@@ -26,12 +26,12 @@ func (r GithubRepository) String() string {
|
||||
|
||||
// URL returns the Github repository URL.
|
||||
func (r GithubRepository) URL() string {
|
||||
return fmt.Sprintf("https://github.com/%s", r)
|
||||
return fmt.Sprintf("sources.truenas.cloud/code/%s", r)
|
||||
}
|
||||
|
||||
// CloneURL returns the git clone URL.
|
||||
func (r GithubRepository) CloneURL() string {
|
||||
return fmt.Sprintf("https://github.com/%s.git", r)
|
||||
return fmt.Sprintf("sources.truenas.cloud/code/%s.git", r)
|
||||
}
|
||||
|
||||
// Metadata about the repository.
|
||||
@@ -108,7 +108,7 @@ func (p *Project) Skip() bool {
|
||||
|
||||
// Reason returns the reason why the test is skipped.
|
||||
func (p *Project) Reason() string {
|
||||
return fmt.Sprintf("https://github.com/mmcloughlin/avo/issues/%d", p.KnownIssue)
|
||||
return fmt.Sprintf("sources.truenas.cloud/code/avo/issues/%d", p.KnownIssue)
|
||||
}
|
||||
|
||||
// Step represents a set of commands to run as part of the testing plan for a
|
||||
@@ -259,8 +259,8 @@ func (p *Package) Steps(c *Context) []*Step {
|
||||
Name: "Avo Module Replacement",
|
||||
WorkingDirectory: moddir,
|
||||
Commands: []string{
|
||||
"go mod edit -modfile=" + modfile + " -require=github.com/mmcloughlin/avo@" + invalid,
|
||||
"go mod edit -modfile=" + modfile + " -replace=github.com/mmcloughlin/avo=" + c.AvoDirectory,
|
||||
"go mod edit -modfile=" + modfile + " -require=sources.truenas.cloud/code/avo@" + invalid,
|
||||
"go mod edit -modfile=" + modfile + " -replace=sources.truenas.cloud/code/avo=" + c.AvoDirectory,
|
||||
"go mod tidy -modfile=" + modfile,
|
||||
},
|
||||
})
|
||||
|
||||
4
tests/thirdparty/make_workflow.go
vendored
4
tests/thirdparty/make_workflow.go
vendored
@@ -10,8 +10,8 @@ import (
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
|
||||
"github.com/mmcloughlin/avo/internal/prnt"
|
||||
"github.com/mmcloughlin/avo/tests/thirdparty"
|
||||
"sources.truenas.cloud/code/avo/internal/prnt"
|
||||
"sources.truenas.cloud/code/avo/tests/thirdparty"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
4
tests/thirdparty/metadata_test.go
vendored
4
tests/thirdparty/metadata_test.go
vendored
@@ -6,8 +6,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mmcloughlin/avo/internal/github"
|
||||
"github.com/mmcloughlin/avo/internal/test"
|
||||
"sources.truenas.cloud/code/avo/internal/github"
|
||||
"sources.truenas.cloud/code/avo/internal/test"
|
||||
)
|
||||
|
||||
var update = flag.Bool("update", false, "update project metadata")
|
||||
|
||||
2
tests/thirdparty/packages_test.go
vendored
2
tests/thirdparty/packages_test.go
vendored
@@ -8,7 +8,7 @@ import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/mmcloughlin/avo/internal/test"
|
||||
"sources.truenas.cloud/code/avo/internal/test"
|
||||
)
|
||||
|
||||
//go:generate go run make_workflow.go -suite suite.json -output ../../.github/workflows/packages.yml
|
||||
|
||||
Reference in New Issue
Block a user