#475 Allow the user to define branch for local builds
Closed 7 years ago Opened 7 years ago by psabata.

It's currently impossible to build from any branch but master even if you use the branch name or its unique commit hash in the SCMURL (e.g. file:///home/build/modules/bootstrap?#rawhide -> module_build_service.errors.ValidationError: Commit rawhide is not in branch master.).

Defining the branch also allows the recently added features, #467 (appears in the dumped modulemd file) and #469 (appears in %{_module_stream}).


Should be fixed as part of https://pagure.io/fm-orchestrator/pull-request/270.

You can do one of following with updated mbs-build:

  • mbs-build local in the directory with a module. It gets the path to repository and current branch automatically.
  • mbs-build file:///home/psabata/my_awesome_modularity_work/bootstrap rawhide
  • mbs-build git://pagure.io/psabata/my_awesome_remote_repository branch_name

Feel free to test :)

Metadata Update from @jkaluza:
- Issue assigned to jkaluza

7 years ago

Thanks, I'll check that out.

I confirm the PR fixes the problem for me.

Metadata Update from @ralph:
- Issue status updated to: Closed (was: Open)

7 years ago

Login to comment on this ticket.

Metadata