Here is now an attempt to solve the issue. It had to be fixed in guix/substitutes.scm and guix/ci.scm only. In guix/scripts/publish.scm I did not spot any place where wrong URLs are constructed.
Many thanks to Mark for pointing to 'resolve-uri-reference'. Regarding CI: I did some tests, so these should work. Anyhow, I did not find a tests-suite for fully testing this part. Hartmut Goebel (3): substitute: Fix handling of short option "-h". substitutes: Properly construct URLs. ci: Properly construct URLs. guix/ci.scm | 79 +++++++++++++++++++++---------------- guix/scripts/substitute.scm | 2 +- guix/substitutes.scm | 13 +++--- 3 files changed, 55 insertions(+), 39 deletions(-) -- 2.30.2