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

check that files are executable in finding executables. #1899

Merged
merged 2 commits into from
Apr 6, 2017

Conversation

tatome
Copy link

@tatome tatome commented Apr 4, 2017

conda build got hung up on a file called git in my $PATH that was not executable (by me). This fixes it.

@msarahan
Copy link
Contributor

msarahan commented Apr 4, 2017

Cool, thanks. Do you know how this behaves on Windows? Is this worth adding a test for, so that future work doesn't break it?

@tatome
Copy link
Author

tatome commented Apr 5, 2017

It probably makes as much sense on Windows as on *nix to check whether a file with the correct name is actually executable, but I don't have access to a Windows machine, so I can't test that.

That's a good point about the regression test, though. I'll see what I can do. Is it OK if I make the test conditional on the OS?

@tatome
Copy link
Author

tatome commented Apr 6, 2017

OK, I wrote a test for find_executable.

Since I can't test on Windows, I'm not changing the code for win32 in find_executable and the test does nothing if on that architecture. Someone else with access to a Windows machine could fix find_executable and enable the test for win32.

@msarahan
Copy link
Contributor

msarahan commented Apr 6, 2017

Great, thanks! I'll test on windows when I can. Nice test!

The Travis failure looks like a fluke, so I'm going to merge this.

@msarahan msarahan merged commit dd35b59 into conda:master Apr 6, 2017
@github-actions
Copy link

github-actions bot commented May 3, 2022

Hi there, thank you for your contribution!

This pull request has been automatically locked because it has not had recent activity after being closed.

Please open a new issue or pull request if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants