diff options
Diffstat (limited to 'internal/rosa/rosa.go')
| -rw-r--r-- | internal/rosa/rosa.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index b6a2c023..3b05b368 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -37,6 +37,9 @@ func mustDecode(s string) pkg.Checksum { return pkg.MustDecode(s) } +// KV is a key-value pair of strings. +type KV [2]string + var ( // AbsUsrSrc is the conventional directory to place source code under. AbsUsrSrc = fhs.AbsUsr.Append("src") @@ -364,7 +367,7 @@ func (t Toolchain) NewPatchedSource( name, version string, source pkg.Artifact, passthrough bool, - patches ...[2]string, + patches ...KV, ) pkg.Artifact { if passthrough && len(patches) == 0 { return source @@ -446,7 +449,7 @@ type PackageAttr struct { ScriptEarly string // Passed to [Toolchain.NewPatchedSource]. - Patches [][2]string + Patches []KV // Kind of source artifact. SourceKind int |
