You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cabal build
[... regular git copying output]
From /s/bytestring-strict-builder
* [new branch] unsafe -> origin/unsafe
fatal: '--detach' cannot be used with '-b/-B/--orphan'
After this, running cabal build again reports the same error. After wiping dist-newstyle/src/bytestr*, the build works fine.
To Reproduce
I've run the above steps again and arrived at the same result. I have not yet made sure it happens with arbitrary repositories instead of the specific ones I encountered this with, though I expect it to be a general issue.
Expected behavior
In step 4, cabal build should manage to check out the correct branch.
System information
Operating system: macOS 12.4
cabal 3.6.2.0 via ghcup, git in PATH is git version 2.32.1 (Apple Git-133) (but I'm not entirely sure this is what cabal calls)
Additional context
This is related to #6888. However, that ticket is specific to the redundant branch setting, while this one appears to be a bug with tag which I understand to be the "standard" way to specify a revision.
The text was updated successfully, but these errors were encountered:
Describe the bug
I ran into the following error while working with a forked local dependency:
source-repository-package
entry tocabal.project.local
, pointing to a valid local repository but non-existent tag:cabal build
errors out as it should:cabal build
fails with an unexpected git error:After this, running
cabal build
again reports the same error. After wipingdist-newstyle/src/bytestr*
, the build works fine.To Reproduce
I've run the above steps again and arrived at the same result. I have not yet made sure it happens with arbitrary repositories instead of the specific ones I encountered this with, though I expect it to be a general issue.
Expected behavior
In step 4,
cabal build
should manage to check out the correct branch.System information
cabal
3.6.2.0 via ghcup,git
in PATH isgit version 2.32.1 (Apple Git-133)
(but I'm not entirely sure this is whatcabal
calls)Additional context
This is related to #6888. However, that ticket is specific to the redundant
branch
setting, while this one appears to be a bug withtag
which I understand to be the "standard" way to specify a revision.The text was updated successfully, but these errors were encountered: