aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/state.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-07-01 14:25:30 +0900
committerOphestra <cat@gensokyo.uk>2026-07-01 15:03:26 +0900
commit3975dd3e0f6d446241841cdf5c011d4f5f77b5eb (patch)
tree80818b60350262b18966138057cb47127ba8694d /internal/rosa/state.go
parent3ab7116b29750824c7d77b7dd43f20db88aac7db (diff)
internal/rosa: create /bin symlinks via helper
This centralises the workaround for surprisingly common buggy scripts with nonstandard hardcoded paths. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
-rw-r--r--internal/rosa/state.go20
1 files changed, 11 insertions, 9 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go
index 6b914edc..088963bf 100644
--- a/internal/rosa/state.go
+++ b/internal/rosa/state.go
@@ -1004,15 +1004,17 @@ func (ctx *evalContext) pf(
k("block"): &meta.Blocked,
k("latest"): &meta.latest,
- k("writable"): &attr.Writable,
- k("chmod"): &attr.Chmod,
- k("enterSource"): &attr.EnterSource,
- k("env"): &attr.Env,
- k("early"): &attr.ScriptEarly,
- k("patches"): &patches,
- k("files"): &files,
- k("exclusive"): &excl,
- k("toyboxEarly"): &early,
+ k("writable"): &attr.Writable,
+ k("chmod"): &attr.Chmod,
+ k("enterSource"): &attr.EnterSource,
+ k("env"): &attr.Env,
+ k("early"): &attr.ScriptEarly,
+ k("bin"): &attr.Bin,
+ k("populateUsrBin"): &attr.PopulateUsrBin,
+ k("patches"): &patches,
+ k("files"): &files,
+ k("exclusive"): &excl,
+ k("toyboxEarly"): &early,
k("checksum"): &kc,
k("output"): &output,