-
Notifications
You must be signed in to change notification settings - Fork 221
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
kiota-lock.json
contains absolute path in descriptionLocation
#3151
Comments
Thanks for reporting this, is this something you'd be willing to submit a pull request for? Here is where the lockfile gets written
|
If you accept PR, yes I can submit one. |
@jods4 is this something you're still willing to work on? |
@baywet Sorry I forgot to come back to you, I've been quite busy since I came back. There was a turn of events and maybe we'll pivot to Refitter to generate strongly typed api clients in our project. To be honest with you: it's not final yet but highly likely that we switch to Refitter. |
no worries, what were (will be) the deciding factors? |
Refit is a great library to work with apis that do not have OpenAPI specs, which is unfortunately something we must do. Once we've fully integrated Refit (config, logging, credentials mgmt, httpclient lifetime, etc.) it simply makes sense to use it for OpenAPI too (with Refitter), rather than adopt a second, different http library. |
Thanks for the transparent feedback! |
No problem, thanks for your work on Kiota! |
When using the command line, if code is generated with
Then the lock file will contain the absolute path to
my-api.json
.This is not portable in collaborative environments, where people might check out source code in different locations.
If
descriptionLocation
is a file, it should be stored as a relative path from thekiota-lock.json
, so thatdotnet kiota update
works for everyone.The text was updated successfully, but these errors were encountered: