This commit is contained in:
2026-03-06 20:14:02 +00:00
parent 39eaafea25
commit 33208a2356
146 changed files with 673 additions and 1986 deletions

View File

@@ -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,
},
})

View File

@@ -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 (

View File

@@ -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")

View File

@@ -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