You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plugin: gate that platform conditions agree with CheckSporeOS once #1041 and #1054 are both on main #1055
#1041 adds plugin.CheckSporeOS (blanket Windows refusal, #1001). #1054 adds evaluation of conditions.remote (#1040), including type: platform, compared against the same hostGOOS variable via plugin.MatchesOS/NormalizeOS (trimmed, case-insensitive, empty = Linux, the same normalisation as CheckSporeOS).
Neither PR can carry a gate on their agreement, because each lacks the other's symbol on main. A trial merge of the two branches auto-merges and passes this ad-hoc check, which should be committed once both have landed (in pkg/plugin):
for_, g:=range []string{"windows", "Windows", " windows ", "linux", "LINUX", "darwin", ""} {
refused:=CheckSporeOS(g) !=nilerr:=CheckCondition(ctx, Condition{Type: "platform", OS: "linux"}, NewTemplateContext(), ConditionHost{GOOS: g})
// a refused OS must fail the registry's os: linux condition; a Linux spore must pass bothifrefused&&err==nil||NormalizeOS(g) =="linux"&& (refused||err!=nil) { t.Errorf(...) }
}
Better still, have CheckSporeOS call NormalizeOS(goos) == "windows" so there is one normaliser rather than two that happen to agree.
Activity
fix(plugin): validator accepts only what the step executors run (#1130,
fix(plugin): validator accepts only what the step executors run (#1130,