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
Create a new plugin repo, with both main and master branches. Make master the default
Push an older version of the plugin to main, and a newer version to master (i.e. so that the older version does not exist on the commit history of main)
Point your whippet.json file at that repo (with no specific reference beyond the repo source)
Run whippet deps update. Whippet will take the commit hash reference added to whippet.lock from main, but try and pull the plugin from master, using that reference. This will result in a fatal: reference is not a tree: [commit-hash-from-master] error when running whippet deps install or whippet deps update
It appears that, if main exists, Whippet assumes it's the default branch, but that may not actually be the case. It should probably just use the default branch at all times, and allow that default branch to be either main or master.
The text was updated successfully, but these errors were encountered:
@RobjS where we've had this problem, we haven't always been consistent about whether main or master is the default branch. If a plugin repo has both, I'm wondering whether Whippet should just exist with an error message?
To recreate:
main
andmaster
branches. Makemaster
the defaultmain
, and a newer version tomaster
(i.e. so that the older version does not exist on the commit history ofmain
)whippet.json
file at that repo (with no specific reference beyond the repo source)whippet deps update
. Whippet will take the commit hash reference added towhippet.lock
frommain
, but try and pull the plugin frommaster
, using that reference. This will result in afatal: reference is not a tree: [commit-hash-from-master]
error when runningwhippet deps install
orwhippet deps update
It appears that, if
main
exists, Whippet assumes it's the default branch, but that may not actually be the case. It should probably just use the default branch at all times, and allow that default branch to be eithermain
ormaster
.The text was updated successfully, but these errors were encountered: