forked from security/hakurei
internal/rosa/make: migrate to helper interface
This also updates all affected artifacts to use new behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -9,13 +9,13 @@ func (t Toolchain) newFlex() pkg.Artifact {
|
||||
version = "2.6.4"
|
||||
checksum = "p9POjQU7VhgOf3x5iFro8fjhy0NOanvA7CTeuWS_veSNgCixIJshTrWVkc5XLZkB"
|
||||
)
|
||||
return t.NewViaMake("flex", version, pkg.NewHTTPGetTar(
|
||||
return t.NewPackage("flex", version, pkg.NewHTTPGetTar(
|
||||
nil, "https://github.com/westes/flex/releases/download/"+
|
||||
"v"+version+"/flex-"+version+".tar.gz",
|
||||
mustDecode(checksum),
|
||||
pkg.TarGzip,
|
||||
), nil,
|
||||
t.Load(M4),
|
||||
), nil, (*MakeHelper)(nil),
|
||||
M4,
|
||||
)
|
||||
}
|
||||
func init() { artifactsF[Flex] = Toolchain.newFlex }
|
||||
|
||||
Reference in New Issue
Block a user