-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsp-client fails when using a local typespec project with commit hashes that aren't on the remote #7721
Comments
Thanks for reaching out about this @billwert! In this case I dont think you want to use It seems like in this case you should be using: Please note that I am working on adding more examples to the README to show various usages for tsp-client. So there will be more examples to use. In case you havent gone though it, here is a link to the npm module with more information on the tool: https://www.npmjs.com/package/@azure-tools/typespec-client-generator-cli?activeTab=readme |
I'll keep this issue open for tracking to improve the command descriptions in the README. |
Hey! The target directory did not exist in this case and it was the first time I had run init for it. |
Ah I see, this line in the output had caught my eye so realized there was also an issue when running the init: About the local commit, tsp-location.yaml is meant to help with versioning control for specs checked in upstream in the NOTE: you still need to have a tsp-location.yaml under your SDK project directory to indicate important information such as |
We added more flexibility in tsp-client so that the repo and commit arent required anymore as of v0.14.0. Here are some docs on the simplified local spec init scenario: https://azure.github.io/typespec-azure/docs/howtos/generate-with-tsp-client/local_spec_quickstart/ |
It appears
tsp-client
expects the value intsp-location.yaml
to point to a live hash on github. I am usingtsp-compile
to initialize a new library. I'm working from a local checkout of a PR intoazure-rest-api-specs
that I have made a commit to. I hit this failure:repro steps (I think):
tsp-client init -c <path to local project> --repro Azure/azure-rest-api-specs --commit <local commit>
The text was updated successfully, but these errors were encountered: