Closed lucperkins closed 4 months ago
Gitlab supports subgroups that can nested up to 20 levels, which doesn't work well without our {owner}/{repo} schema for flakes. This PR handles subgroup names by converting all slashes past the first one into dashes. Some example conversions:
{owner}/{repo}
"a/b" => "a/b" "a/b/c" => "a/b-c" "a/b/c/d" => "a/b-c-d" "a/b/c/d/e/f/g/h/i/j/k" => "a/b-c-d-e-f-g-h-i-j-k"
There's also a built-in escape hatch from this behavior via FLAKEHUB_PUSH_DISABLE_SUBGROUPS or --disable-subgroups.
FLAKEHUB_PUSH_DISABLE_SUBGROUPS
--disable-subgroups
Gitlab supports subgroups that can nested up to 20 levels, which doesn't work well without our
{owner}/{repo}
schema for flakes. This PR handles subgroup names by converting all slashes past the first one into dashes. Some example conversions:There's also a built-in escape hatch from this behavior via
FLAKEHUB_PUSH_DISABLE_SUBGROUPS
or--disable-subgroups
.