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

name conflict with macos codesign #13414

Closed
5 of 8 tasks
Anton-4 opened this issue Aug 16, 2024 · 6 comments
Closed
5 of 8 tasks

name conflict with macos codesign #13414

Anton-4 opened this issue Aug 16, 2024 · 6 comments
Labels

Comments

@Anton-4
Copy link

Anton-4 commented Aug 16, 2024

Checklist

  • I added a descriptive title.
  • I searched through existing issues and couldn't find a solution or duplicate issue.
  • I searched on the web (e.g. Google) and didn't find any helpful information.
  • I searched the Anaconda documentation and didn't find any helpful information.

Impacted product

  • A conda package (built by Anaconda)
  • Anaconda Distribution (formerly Anaconda Individual Edition)
  • Miniconda
  • Anaconda.org

What happened?

anaconda3/bin contains codesign, during installation, this folder is prepended to the PATH. The widely used macOS xcode command line tools also have an application called codesign. Because anaconda puts its folder first in the PATH, this means that anaconda's codesign will be used any time a user or program calls codesign, while they probably intended to use the xcode codesign.

Given that anaconda puts itself first in the PATH, it should avoid unintentionally having their programs take precedence over popular programs.

Expected behavior or outcome

codesign in a macOS terminal should not use anaconda's codesign. Given my limited context, renaming anaconda's codesign seems like a possible solution.

@marcoesters
Copy link

Which installer are you using? I just downloaded 2024.06-1 for Apple Silicon and I do not see codesign in the installation directory (I only see codesign_allocate).

@bsassoli
Copy link

Hi, I am the one who originally found the bug. TBH I am not sure what I used.

@Anton-4
Copy link
Author

Anton-4 commented Aug 17, 2024

Perhaps you can search your history to figure it out; cat ~/.zsh_history | grep conda

@bsassoli
Copy link

Tried but I get hundreds off results and the first ones don't seem related :-(

@Anton-4
Copy link
Author

Anton-4 commented Aug 17, 2024

Based on @marcoesters comment, it looks like codesign was already renamed, the issue can always be re-opened if this does not turn out to be true.

@Anton-4 Anton-4 closed this as completed Aug 17, 2024
@marcoesters
Copy link

codesign_allocate is actually a different binary (I have both codesign and codesign_allocate in /usr/bin on my Mac). It should probably not be the Anaconda path either, but I will forward this to our package building team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants