Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to configure default branch name for dune-release opam submit with a custom repo? #482

Open
mbarbin opened this issue Nov 1, 2023 · 1 comment

Comments

@mbarbin
Copy link

mbarbin commented Nov 1, 2023

I'm trying to submit an opam package to a custom repo using the --opam-repo option of dune-release opam submit (great that this exists btw!).

It fails when trying to pull, I believe due to it looking for the default branch named master - mine is called main.

error log
[-] Fetching https://github.com/mbarbin/opam-repository.git#master
   [in ../opam-repository/mbarbin]
=> exec:
     git --git-dir .git fetch https://github.com/mbarbin/opam-repository.git   master
dune-release: [ERROR] Exit code 128 from command
    `git --git-dir .git fetch https://github.com/mbarbin/opam-repository.git
       master`:
  fatal: couldn't find remote ref master

Is there a way to configure this name to be main rather than master?

Thanks!

@Leonidas-from-XIV
Copy link
Member

At the moment it cannot be configured:

("base", `String "master");
, that part is hardcoded. I think it would indeed be sensible to be able to specify either the base branch in --opam-repo or -even better- determine the HEAD branch of the URL automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants