#1211 file:///full-path in DISTGITS stopped working with module-build-service-2.19.0-1.fc29.noarch
Closed: Fixed by mprahl. Opened by sbergmann.

For building Flatpaks from RPMs, https://docs.fedoraproject.org/en-US/flatpak/troubleshooting/#_rebuilding_a_module_against_a_local_component has instructions how to build individual modules from local sources. That involves adding changes to /etc/module-build-service/config.py, setting RPMS_ALLOW_REPOSITORY = True in BaseConfiguration and adding

LocalBuildConfiguration.DISTGITS = {
    'https://src.fedoraproject.org': ('fedpkg clone --anonymous {}',
                                     'fedpkg --release module sources'),
    'file:///<path to checkouts>/': ('git clone file:///<path to checkouts>/{0}; git -C {0} remote set-url origin ssh://<username>@pkgs.fedoraproject.org/rpms/{0}',
                                     'fedpkg --release module sources'),
}

That started to fail after an upgrade from module-build-service-2.18 to -2.19, the logs contained URLs of the form indicating that stuff had been concatenated wrongly.


@sbergmann do you have logs or a traceback to share?

tail of failing flatpak-module build-module output is

[...]
DEBUG: Unsharing. Flags: 67239936
DEBUG: Initializing SCM integration...
DEBUG: SCM checkout command: sh -c 'git clone file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk; git -C file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk remote set-url origin ssh://sbergmann@pkgs.fedoraproject.org/rpms/file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk''; git -C java-1.8.0-openjdk checkout fa67e44b1c9eb365cc96eb8a5819e627eb0ed896'
DEBUG: SCM checkout post command: fedpkg --release module sources
DEBUG: SCM checkout directory: /tmp/tmpejx7jb8g.mock-scm.java-1.8.0-openjdk
DEBUG: child environment: None
DEBUG: Executing command: ['sh', '-c', 'git clone file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk; git -C file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk remote set-url origin ssh://sbergmann@pkgs.fedoraproject.org/rpms/file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk; git -C java-1.8.0-openjdk checkout fa67e44b1c9eb365cc96eb8a5819e627eb0ed896'] with env environ({'DISPLAY': ':1', 'LANG': 'en_US.UTF-8', 'SHELL': '/bin/bash', 'TERM': 'xterm-256color', 'PATH': '/usr/sbin:/usr/bin:/sbin:/bin:/root/bin', 'LOGNAME': 'root', 'USER': 'root', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'USERHELPER_UID': '1000', 'HOME': '/home/sbergman'}) and shell False
DEBUG: BUILDSTDERR: Cloning into 'java-1.8.0-openjdk'...
DEBUG: BUILDSTDERR: fatal: '/data/sbergman/fedora-rpm-flatpak-local-checkouts/file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk' does not appear to be a git repository
DEBUG: BUILDSTDERR: fatal: Could not read from remote repository.
DEBUG: BUILDSTDERR: Please make sure you have the correct access rights
DEBUG: BUILDSTDERR: and the repository exists.
DEBUG: BUILDSTDERR: fatal: cannot change to 'file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk': No such file or directory
DEBUG: BUILDSTDERR: fatal: cannot change to 'java-1.8.0-openjdk': No such file or directory
DEBUG: Child return code was: 128
ERROR: Command failed: 
 # sh -c git clone file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk; git -C file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk remote set-url origin ssh://sbergmann@pkgs.fedoraproject.org/rpms/file:///data/sbergman/fedora-rpm-flatpak-local-checkouts/java-1.8.0-openjdk; git -C java-1.8.0-openjdk checkout fa67e44b1c9eb365cc96eb8a5819e627eb0ed896

@sbergmann I'll take a look. Thanks for filing this.

This should resolve the issue:
https://pagure.io/fm-orchestrator/pull-request/1212

Metadata Update from @mprahl:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/mbs/issues/1211

Please continue any further discussion there.

Metadata