Skip to content
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

Seems to think an existing executable file doesn't exist #4848

Open
dabrahams opened this issue Nov 28, 2023 · 0 comments
Open

Seems to think an existing executable file doesn't exist #4848

dabrahams opened this issue Nov 28, 2023 · 0 comments

Comments

@dabrahams
Copy link

dabrahams commented Nov 28, 2023

This commit works around a bug by not asking for the size of an existing executable file. The bug apparently makes FileManager().attributesOfItem(atPath:) throw error 260 for some accessible, existing files. Before that commit, when running swift build --build-tests in the right circumstances, the following occurs.

executing task: /usr/bin/swift build --build-tests 

error: Error Domain=NSCocoaErrorDomain Code=260 "The file doesn’t exist."
error: build stopped due to build-tool plugin failures

In my experience, this reproduces only in a devcontainer running on Intel hardware (can't reproduce on Apple Silicon). You can see it in GitHub CI for the reproducer project (if GitHub logs are out-of-date, make your own fork in GitHub and enable Actions) or you can run the devcontainer locally on your mac: install Docker and Visual Studio Code, open the project's root directory in VSCode and accept VSCode's suggestion to reopen the project in a devcontainer, then run the tests.

The GitHub CI logs from before and after the commit in question are
devcontainer-log-before.txt
devcontainer-log-after.txt

@dabrahams dabrahams changed the title Seems to think an executable file doesn't exist Seems to think an existing executable file doesn't exist Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant