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

Fix in SquashFSArchive._add #248 #306

Merged
merged 2 commits into from
Jan 21, 2024
Merged

Fix in SquashFSArchive._add #248 #306

merged 2 commits into from
Jan 21, 2024

Conversation

Kirill888
Copy link
Contributor

@Kirill888 Kirill888 commented Jan 18, 2024

Can not create hard-link on Linux when source file is owned by root but conda-pack runs as non-root user.

Description

Fixing issue #248, when conda is installed as root and conda-pack runs as non-root, hard-linking activate script from conda installation directory to temp folder fails. So we check that source and destination are by the same user and on the same filesystem before deciding to use more efficient link instead of costlier copy.

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

Can not create hard-link on Linux when source file is owned by root but
conda-pack runs as non-root user.
@conda-bot
Copy link
Contributor

We require contributors to sign our Contributor License Agreement and we don't have one on file for @Kirill888.

In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature, merge the PR (conda/infrastructure#870), and ping the bot to refresh the PR.

@dbast
Copy link
Member

dbast commented Jan 18, 2024

@conda-bot check

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jan 18, 2024
@xhochy
Copy link
Collaborator

xhochy commented Jan 18, 2024

Can you please add a news item? Then we can merge this.

@xhochy xhochy merged commit d3e2f31 into conda:main Jan 21, 2024
20 checks passed
@Kirill888 Kirill888 deleted the fix-248 branch January 22, 2024 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants