Closed nomeata closed 3 years ago
Maybe these lines should allow dashes in the URL parts? (([\w_.]+?)
might be too strict)
dep_owner="$(echo "$github_ssh" | perl -nle 'print $1 if m/[:\/]([\w-]{1,39})\/([\w_.]+?)(?:\.git)?$/;')"
dep_repo="$(echo "$github_ssh" | perl -nle 'print $2 if m/[:\/]([\w-]{1,39})\/([\w_.]+?)(?:\.git)?$/;')"
Hi @nomeata, you're absolutely right, the regex is too strict.
To unblock you, I'm going to make it more lenient and add -
in the list. Then, next week when I find time, I'm going to take a better look and maybe completely ditch these regexes and the dependency on perl. As the comment above those lines says, if it's in sources.json
, it has to be correct.
This might be triggered due to permission issues, but the autoupdater falls over a SSH dependency somehow. Note the
niv add /
which looks odd:(This is using
v9
)