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

Non-root user support for oclif pack deb #887

Closed
riywo opened this issue May 16, 2022 · 1 comment
Closed

Non-root user support for oclif pack deb #887

riywo opened this issue May 16, 2022 · 1 comment

Comments

@riywo
Copy link

riywo commented May 16, 2022

Do you want to request a feature or report a bug?

Mixture.

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

With non-root user:

$ npx oclif pack deb
...
    Error: Command failed: /bin/sh -c chown -R root "/workspaces/mycli/tmp/apt/mycli_0.1.0.d5f2854-1_amd64.apt"
    Code: 1

What is the expected behavior?

Please mention your oclif and OS version.

Here is the problematic code:

await qq.x(`chown -R root "${workspace}"`)
await qq.x(`chgrp -R root "${workspace}"`)

These days we don't need to use the real root user when packaging deb:

https://askubuntu.com/questions/735883/what-user-file-owner-to-use-when-creating-debian-packages

@mdonnalley
Copy link
Contributor

Fixed by #987

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

2 participants