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