1
0
forked from rosa/hakurei

internal/rosa: wrapper around git helper

This results in much cleaner call site for the majority of use cases.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-13 15:18:49 +09:00
parent b587caf2e8
commit eeaf26e7a2
8 changed files with 25 additions and 29 deletions

View File

@@ -114,3 +114,8 @@ git \
rm -rf /work/.git
`, resolvconf())
}
// newTagRemote is a helper around NewViaGit for a tag on a git remote.
func (t Toolchain) newTagRemote(url, tag, checksum string) pkg.Artifact {
return t.NewViaGit(url, "refs/tags/"+tag, mustDecode(checksum))
}