-
Notifications
You must be signed in to change notification settings - Fork 37
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
Issues when releasing from a git worktree #439
Comments
Today I experienced another error when publishing ocaml-tar 2.5.0 from a git worktree:
|
I encountered the same error again and spent a few minutes investigating the error. What I have found is an incorrect assumption of the relationship between Line 55 in 0baf5f2
For a git repository in Further looking into the code it seems Lines 107 to 132 in 0baf5f2
|
Thanks for the investigation, these are pretty good insights and should be a big help to solve this issue! |
I encountered some warts when using dune-release from a git worktree. Unfortunately, I closed the shell I was using in the subtree so I can't paste all output.
When I ran
dune-release opam submit
I got an error from git complaining about the index. Indeed, I had a merge conflict that I hadn't committed yet. The command seemed a bit odd with the worktree. Not sure if this is a bug.After I fixed this merge conflict I ran
dune-release opam submit
and it worked, but while the files in the directory seemed untouched the git worktree was checked out asrelease-ssh-agent-v0.3.1
, the opam-repository release branch. Git status in the worktree complained about all the files deleted inpackages/
and untracked files that were files from my project.reynir@spurv:~/workspace/ocaml-ssh-agent$ git worktree list /home/reynir/workspace/ocaml-ssh-agent 6061294366 [ssh-ed25519] /home/reynir/workspace/fix-ssh-agent 7610b693a3 [release-ssh-agent-v0.3.1]
The text was updated successfully, but these errors were encountered: