Skip to content
Snippets Groups Projects

build: Use full public URL for submodules (!13)

Merged Matthew Feickert requested to merge fix/build-with-public-url into main
  • GitLab relative path URLs only work if the submodules are being cloned over ssh or kerberos. In the event that a clone needs to happen without credentials (e.g. building a container image) the relative path URL will fail. Given this, opt for using the full HTTPS URL.

  • Include the '.git' at the end of the URL as for some reason GitLab requires this and without it the submodule clone will fail with

    error: RPC failed; result=22, HTTP code = 422 fatal: The remote end hung up unexpectedly

    This does not happen with GitHub, only with GitLab.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading