using --pull doesn't do what one would expect - if the repo exists locally, it doesn't pull the branches/tags that are needed #616

Closed
opened 2023-10-29 09:03:00 +00:00 by zramsay · 1 comment
Member

For each repo whereby the stack has been updated, I have to go into it and git fetch -a origin then continue
e.g.:

# laconic-so --stack fixturenet-payments setup-repositories --pull
branches: None
Dev Root is: /root/cerc
Checking: /root/cerc/go-ethereum: already exists active branch: v1.11.6-statediff-v5
0.00B [00:00, ?B/s]
Checking: /root/cerc/lighthouse: already exists active branch: stable
0.00B [00:00, ?B/s]
Checking: /root/cerc/ipld-eth-db: already exists active branch: v5
100%|####################################################################################################| 4.00/4.00 [00:00<00:00, 8.42B/s]
Checking: /root/cerc/ipld-eth-server: already exists active branch: v5
100%|####################################################################################################| 31.0/31.0 [00:00<00:00, 52.5B/s]
switching to branch payments in repo cerc-io/ipld-eth-server
Checking: /root/cerc/ts-nitro: already exists active tag: v0.1.1-go-nitro
skipping pull because this repo checked out a tag
switching to branch v0.1.15 in repo cerc-io/ts-nitro

******* git command returned error exit status:
Cmd('git') failed due to: exit code(1)
  cmdline: git checkout v0.1.15
  stderr: 'error: pathspec 'v0.1.15' did not match any file(s) known to git'
root@pmts-demo:~# cd ~/cerc/ts-nitro/
root@pmts-demo:~/cerc/ts-nitro# git status
HEAD detached at v0.1.13
nothing to commit, working tree clean
root@pmts-demo:~/cerc/ts-nitro# git checkout v0.1.15
error: pathspec 'v0.1.15' did not match any file(s) known to git
root@pmts-demo:~/cerc/ts-nitro# git fetch -a origin
remote: Enumerating objects: 140, done.
remote: Counting objects: 100% (140/140), done.
remote: Compressing objects: 100% (79/79), done.
remote: Total 140 (delta 55), reused 118 (delta 47), pack-reused 0
Receiving objects: 100% (140/140), 337.98 KiB | 4.33 MiB/s, done.
Resolving deltas: 100% (55/55), completed with 23 local objects.
From https://github.com/cerc-io/ts-nitro
 * [new branch]      dependabot/npm_and_yarn/babel/traverse-7.23.2 -> origin/dependabot/npm_and_yarn/babel/traverse-7.23.2
 * [new branch]      dependabot/npm_and_yarn/undici-5.26.3         -> origin/dependabot/npm_and_yarn/undici-5.26.3
   3a42d1d..73f1ebc  main                                          -> origin/main
 * [new branch]      release-v0.1.14                               -> origin/release-v0.1.14
 * [new branch]      release-v0.1.15                               -> origin/release-v0.1.15
 * [new tag]         v0.1.14                                       -> v0.1.14
 * [new tag]         v0.1.15                                       -> v0.1.15
 * [new tag]         v0.1.2-go-nitro                               -> v0.1.2-go-nitro
For each repo whereby the stack has been updated, I have to go into it and `git fetch -a origin` then continue e.g.: ``` # laconic-so --stack fixturenet-payments setup-repositories --pull branches: None Dev Root is: /root/cerc Checking: /root/cerc/go-ethereum: already exists active branch: v1.11.6-statediff-v5 0.00B [00:00, ?B/s] Checking: /root/cerc/lighthouse: already exists active branch: stable 0.00B [00:00, ?B/s] Checking: /root/cerc/ipld-eth-db: already exists active branch: v5 100%|####################################################################################################| 4.00/4.00 [00:00<00:00, 8.42B/s] Checking: /root/cerc/ipld-eth-server: already exists active branch: v5 100%|####################################################################################################| 31.0/31.0 [00:00<00:00, 52.5B/s] switching to branch payments in repo cerc-io/ipld-eth-server Checking: /root/cerc/ts-nitro: already exists active tag: v0.1.1-go-nitro skipping pull because this repo checked out a tag switching to branch v0.1.15 in repo cerc-io/ts-nitro ******* git command returned error exit status: Cmd('git') failed due to: exit code(1) cmdline: git checkout v0.1.15 stderr: 'error: pathspec 'v0.1.15' did not match any file(s) known to git' root@pmts-demo:~# cd ~/cerc/ts-nitro/ root@pmts-demo:~/cerc/ts-nitro# git status HEAD detached at v0.1.13 nothing to commit, working tree clean root@pmts-demo:~/cerc/ts-nitro# git checkout v0.1.15 error: pathspec 'v0.1.15' did not match any file(s) known to git root@pmts-demo:~/cerc/ts-nitro# git fetch -a origin remote: Enumerating objects: 140, done. remote: Counting objects: 100% (140/140), done. remote: Compressing objects: 100% (79/79), done. remote: Total 140 (delta 55), reused 118 (delta 47), pack-reused 0 Receiving objects: 100% (140/140), 337.98 KiB | 4.33 MiB/s, done. Resolving deltas: 100% (55/55), completed with 23 local objects. From https://github.com/cerc-io/ts-nitro * [new branch] dependabot/npm_and_yarn/babel/traverse-7.23.2 -> origin/dependabot/npm_and_yarn/babel/traverse-7.23.2 * [new branch] dependabot/npm_and_yarn/undici-5.26.3 -> origin/dependabot/npm_and_yarn/undici-5.26.3 3a42d1d..73f1ebc main -> origin/main * [new branch] release-v0.1.14 -> origin/release-v0.1.14 * [new branch] release-v0.1.15 -> origin/release-v0.1.15 * [new tag] v0.1.14 -> v0.1.14 * [new tag] v0.1.15 -> v0.1.15 * [new tag] v0.1.2-go-nitro -> v0.1.2-go-nitro ```
Owner

I think this works now.

I think this works now.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#616
No description provided.