revng / revng-orchestra

rev.ng's package manager
4 stars 6 forks source link

`orc install` fails to find dependencies when run by the git (for example using `git rebase -x`) #42

Open Cvelth opened 3 years ago

Cvelth commented 3 years ago

Here's an example:

> git rebase -x 'orc install caliban' COMMIT_SHA
Executing: orc install caliban
[+] ERROR - Binary archive linux-x86-64/llvm/optimized/ade05a462e288c65de5ca9e858cdc425c99fba5e_50dcafd9922b0aaa5e345d8922d94d6e3e8bdc23.tar.xz for llvm@optimized not found. Try `orc update` or run `orc install -b`
Diff between current hash material and most similar available archive:
--- /root/orchestra/.orchestra/binary-archives/origin/linux-x86-64/llvm/optimized/26b0ca8b8ad38a00b387463bd2791507d4130c7e_cf349301bb6cd14edda9131743f306b0fd443880.hash-material.yml   2021-09-01 13:52:49.342290215 +0300
+++ /tmp/current_hash_material__z6ka40z 2021-09-02 15:26:04.843939230 +0300
@@ -500,7 +500,7 @@
       "ndebug": !!bool |-
         true
   "commit": |-
-    26b0ca8b8ad38a00b387463bd2791507d4130c7e
+    ade05a462e288c65de5ca9e858cdc425c99fba5e
   "default_build": |-
     optimized
   "license": |-

Use `--loglevel DEBUG` to diff against all available archives
warning: execution failed: orc install caliban@debug
You can fix the problem, and then run

  git rebase --continue

A known workaround is to unset GIT_DIR and GIT_WORK_TREE variables, for example:

> git rebase -x 'unset GIT_DIR && unset GIT_WORK_TREE && orc install caliban' COMMIT_SHA