internal/rosa: export source kind
All checks were successful
Test / Create distribution (push) Successful in 1m2s
Test / Sandbox (push) Successful in 3m3s
Test / ShareFS (push) Successful in 4m53s
Test / Hakurei (push) Successful in 5m30s
Test / Sandbox (race detector) (push) Successful in 5m28s
Test / Hakurei (race detector) (push) Successful in 7m57s
Test / Flake checks (push) Successful in 1m22s

This is set for an exported field, so export the constants as well.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-17 20:09:44 +09:00
parent 420c721c7d
commit 20ebddd9bf
5 changed files with 7 additions and 7 deletions

View File

@@ -426,8 +426,8 @@ type Helper interface {
}
const (
// sourceTarXZ denotes a source tarball to be decompressed using [XZ].
sourceTarXZ = 1 + iota
// SourceKindTarXZ denotes a source tarball to be decompressed using [XZ].
SourceKindTarXZ = 1 + iota
)
// PackageAttr holds build-system-agnostic attributes.
@@ -546,7 +546,7 @@ func (t Toolchain) NewPackage(
var sourceSuffix string
switch attr.SourceKind {
case sourceTarXZ:
case SourceKindTarXZ:
sourceSuffix = ".tar.xz"
scriptEarly += `
tar -C /usr/src/ -xf '/usr/src/` + name + `.tar.xz'