telescope
telescope copied to clipboard
error: pathspec 'replace' did not match any file(s) known to git
run yarn generate
on latest
"@cosmology/proto-parser": "^1.2.1",
"@cosmology/telescope": "^1.2.5",
Receiving the error
error: pathspec 'replace' did not match any file(s) known to git
Note: switching to '44a6a100a92f2984a760b41b7486fb9000ac670e'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 44a6a100a refactor/fix: build push sqs pipeline from branch (#7027) Cloning into '.repos/cosmos-sdk'... remote: Enumerating objects: 128532, done. remote: Counting objects: 100% (1424/1424), done. remote: Compressing objects: 100% (878/878), done. remote: Total 128532 (delta 884), reused 950 (delta 510), pack-reused 127108 Receiving objects: 100% (128532/128532), 23.04 MiB | 14.09 MiB/s, done. Resolving deltas: 100% (74438/74438), done. remote: Enumerating objects: 32, done. remote: Counting objects: 100% (22/22), done. remote: Compressing objects: 100% (22/22), done. remote: Total 32 (delta 1), reused 0 (delta 0), pack-reused 10 Receiving objects: 100% (32/32), 180.35 KiB | 753.00 KiB/s, done. Resolving deltas: 100% (1/1), done. remote: Enumerating objects: 164, done. remote: Counting objects: 100% (131/131), done. remote: Compressing objects: 100% (120/120), done. remote: Total 164 (delta 32), reused 11 (delta 11), pack-reused 33 Receiving objects: 100% (164/164), 122.16 KiB | 1.44 MiB/s, done. Resolving deltas: 100% (42/42), done. error: pathspec 'replace' did not match any file(s) known to git
Hi, Thx for you feedback, could you please provide the path of the repo that I can reproduce this issue?
Hi, there're three steps in yarn generate: "generate": "yarn generate:proto && yarn generate:packages && yarn generate:telescope", "generate:proto": "./scripts/get-proto.sh", "generate:packages": "ts-node --esm scripts/gen-package-types.ts", "generate:telescope": "tsc scripts/codegen.ts --noEmit --skipLibCheck && ts-node --esm scripts/codegen.ts && yarn lint:fix" And the error is usually from git. So I guess it's from this step: "generate:proto": "./scripts/get-proto.sh", Since there's no git invoke inside process of codegen.ts.