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
Hello everybody, this is a casual issue and not immediately detrimental.
In a stack.yaml, if you set a source code location to a git commit that doesn't exist on the referenced repo, then you get the "could not parse object" error, which led me to believe I had somehow pasted my commit hash wrong. For instance, if you have this in your stack.yaml:
and you tried to stack build, you would get the error:
Running /usr/bin/git reset --hard 8e22ca206e9fc8fd7b903afa8b073120f8897793 exited with ExitFailure 128
fatal: Could not parse object '8e22ca206e9fc8fd7b903afa8b073120f8897793'.
Which is misleading.
The text was updated successfully, but these errors were encountered:
It'd make sense to me to add a message like Please ensure that commit 8e22ca206e9fc8fd7b903afa8b073120f8897793 exists within https://github.com/athanclark/foo when that command fails (but also provide the command output).
Running /usr/bin/git reset --hard 8e22ca206e9fc8fd7b903afa8b073120f8897793 exited with ExitFailure 128
fatal: Could not parse object '8e22ca206e9fc8fd7b903afa8b073120f8897793'.
Please ensure that commit 8e22ca206e9fc8fd7b903afa8b073120f8897793 exists within https://github.com/ekmett/lens
Hello everybody, this is a casual issue and not immediately detrimental.
In a
stack.yaml
, if you set a source code location to a git commit that doesn't exist on the referenced repo, then you get the "could not parse object" error, which led me to believe I had somehow pasted my commit hash wrong. For instance, if you have this in yourstack.yaml
:and you tried to
stack build
, you would get the error:Which is misleading.
The text was updated successfully, but these errors were encountered: