-
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 changes depending on OS #4228
Comments
Hi @bkoelman,
And you can add unit tests in this class.
Do you think you'd be able to send a pull request to correct this issue? |
Not anytime soon, I'm pretty occupied with other work at the moment. |
I've experienced this problem.
This stores the following path in
Notice it's Windows style path. During CI/CD in Github Actions (ubuntu runner), this causes problems because I have a job step doing something like this:
and this will complain about
WorkaroundMy current workaround is to manually edit
This fixes the problem in GitHub Actions and it seems to keep working locally on my Windows, at least when using dotnet CLI
I'm not completely sure if using Unix style path always regardless of the OS would be the proper fix, as I don't know the risk with some other tooling. But, just in case my scenario and workaround helps anyone. |
@diegosasw Thanks for the additional information. |
Depending on the operating system on which Kiota is run, the direction of slashes changes in kiota-lock.json. In mixed teams, this results in constant pending changes to this file.
On Windows:
On Ubuntu:
Our case is worse, because it breaks the build. We run a tool in cibuild that verifies code style on different platforms, and it never succeeds because of this. Where success is defined as: build the code, run an automated reformat, then fail the build if this resulted in uncommitted git changes.
The text was updated successfully, but these errors were encountered: