Skip to content

fix: .deb packing privileges - #987

Merged
mdonnalley merged 1 commit into
oclif:mainfrom
knowald:fix/debian-pack-sudo
Oct 20, 2022
Merged

mdonnalley merged 1 commit into
oclif:mainfrom
knowald:fix/debian-pack-sudo

Conversation

@knowald

@knowald knowald commented Oct 4, 2022 •

Copy link
Copy Markdown
Contributor

Currently unable to run the debian packing as a non-root user indepentend of sudo privileges.
Because the chown and chgrp are used for the root group anyway, this is my suggested fix for now.

Relevant: #887

@salesforce-cla

salesforce-cla Bot commented Oct 4, 2022

Copy link
Copy Markdown

Thanks for the contribution! Unfortunately we can't verify the commit author(s): Kevin Nowald <k***@n***.pl>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce.com Contributor License Agreement and this Pull Request will be revalidated.

@knowald

knowald commented Oct 4, 2022

Copy link
Copy Markdown
Contributor Author

Also @salesforce-cla bot, that email is on my GitHub account 🤔

@mdonnalley
mdonnalley merged commit 5392841 into oclif:main Oct 20, 2022
@jurajseffer

Copy link
Copy Markdown

I've ended up removing those two lines completely as sudo won't work in containers that don't have it installed.

gaelmotte pushed a commit to gaelmotte/oclif that referenced this pull request Oct 24, 2022
@jdx

jdx commented Nov 10, 2022

Copy link
Copy Markdown
Contributor

huh did I write this code? Seems weird that I made it so sudo was required.

In any case, I think @jurajseffer makes a good point—we can't rely on sudo being installed. I wonder if the --root-owner-group flag could be used here to make this step not necessary.

@knowald
knowald deleted the fix/debian-pack-sudo branch November 15, 2022 16:07
@lukepolo

lukepolo commented Jan 5, 2023

Copy link
Copy Markdown

was this reverted? its requiring it again .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants