-
Notifications
You must be signed in to change notification settings - Fork 109
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
No such file error in actions when a file was removed in the PR #806
Comments
I tried to reproduce this in one of my repos but was unable to: clap-rs/clap#5077 |
Could you check this repo @epage test-app I have created a fresh project (swiftui) to test it with the same action. I tried several things. First I directly push to master. (no issue) (public) |
Could you retry with 1.16.6? It provides some more context in errors |
I re-ran the last failed action again. Output still much the same. You can checkout the same action I pointed out @epage |
I looked at https://github.com/kaankoken/TestSwiftUIAppWithCI/actions and the last action run was before my post. Is there some place else I'm supposed to look? |
this is the last run I had with v1.16.6. When I compared with v1.16.5 it is so similar. Nothing new Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6511330 (6.2M) [application/octet-stream]
Saving to: ‘typos-v1.16.6-x86_64-unknown-linux-musl.tar.gz’
0K ........ ........ ........ ........ ........ ........ 48% 85.4M 0s
3072K ........ ........ ........ ........ ........ ........ 96% 302M 0s
6144K ... 100% 320M=0.05s
2023-08-19 02:02:31 (136 MB/s) - ‘typos-v1.16.6-x86_64-unknown-linux-musl.tar.gz’ saved [6511330/6511330]
./typos
jq: jq-1.6
$ ./typos TestApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
TestApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
TestApp.xcodeproj/xcuserdata/kaanezgimini.xcuserdatad/xcschemes/xcschememanagement.plist
TestApp/Assets.xcassets/AccentColor.colorset/Contents.json
TestApp/Assets.xcassets/AppIcon.appiconset/Contents.json
TestApp/Assets.xcassets/Contents.json
TestApp/ContentView.swift
TestApp/Preview Content/Preview Assets.xcassets/Contents.json
TestApp/TestApp.entitlements
TestApp/TestAppApp.swift
TestAppTests/TestAppTests.swift
TestAppUITests/TestAppUITests.swift
TestAppUITests/TestAppUITestsLaunchTests.swift
config/_typos.toml --config ./config/_typos.toml
No such file or directory (os error 2)
No such file or directory (os error 2) |
I have tried with Length: 6510548 (6.2M) [application/octet-stream]
Saving to: ‘typos-v1.16.7-x86_64-unknown-linux-musl.tar.gz’
0K ........ ........ ........ ........ ........ ........ 48% 80.1M 0s
3072K ........ ........ ........ ........ ........ ........ 96% 247M 0s
6144K ... 100% 374M=0.05s
2023-08-21 15:46:13 (124 MB/s) - ‘typos-v1.16.7-x86_64-unknown-linux-musl.tar.gz’ saved [6510548/6510548]
./typos
jq: jq-1.6
$ ./typos TestApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
TestApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
TestApp.xcodeproj/xcuserdata/kaanezgimini.xcuserdatad/xcschemes/xcschememanagement.plist
TestApp/Assets.xcassets/AccentColor.colorset/Contents.json
TestApp/Assets.xcassets/AppIcon.appiconset/Contents.json
TestApp/Assets.xcassets/Contents.json
TestApp/ContentView.swift
TestApp/Preview Content/Preview Assets.xcassets/Contents.json
TestApp/TestApp.entitlements
TestApp/TestAppApp.swift
TestAppTests/TestAppTests.swift
TestAppUITests/TestAppUITests.swift
TestAppUITests/TestAppUITestsLaunchTests.swift
config/_typos.toml --config ./config/_typos.toml
argument `TestApp/Preview` is not found
argument `TestApp/Preview` is not found |
Ah, I wonder if you retried a job and github doesn't update the timestamp for the whole workflow. So that means the error is not from the config. I found a couple more places where errors can occur. 1.16.7 is now out with that. ... and I think I figured out what the problem is. The remaining errors were for arguments. We end up filtering the target by the relevant commits but don't do anything to deal with spaces before passing the result into Unsure if there is fancy bash stuff that can be done so each line from |
An immediate workaround is to remove I wonder where the line is for time spent for git to checkout everything vs typos time to spell check it all... |
@epage I think I led you to wrong problem. When I looked before i thought it was a deleted file. However, the real issue might be the parsing. The autogenerated folders/files by xcode has a space char between them. I am very sorry for the whole hustle |
This reverts commit fc7f517. This has two problems - This doesn't correctly handle spaces, likely needing crate-ci#708 - This overrides excludes, see crate-ci#347 This also has a weird cost/benefit balance because this requires enough repo history to do the analysis which takes time to pull down. Rather than waiting until the relevant changes are in to make this work, I'm pulling this out for now. Fixes crate-ci#806
I am running typos in GH action in my iOS project on a private repository. I have no problem while running locally.
gh action debug
I also suspect that the relative path might be the problem but it did not solve it.
_typos.toml
The text was updated successfully, but these errors were encountered: