Error messages are sent to stdout, not to stderr
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
Describe the Bug
When installing the NixOS package from nixpkgs-unstable, several commands (for example to create completions) throw errors which are written to the completions file, like
failed to create /homeless-shelter/.config/pangolin: mkdir /homeless-shelter: permission denied
failed to create /homeless-shelter/.config/pangolin/logs: mkdir /homeless-shelter: permission denied
A workaround can be to set the HOME environment variable in the Nix file.
But the problem also would not occur if pangolin-cli would not write the errors to stdout but to stderr.
Disclaimer: I'm quite new to NixOS but I checked back this matter with a very experienced colleague of mine. If you have any questions, please let me know.
Environment
- OS Type & Version: NixOS 25.11
- Pangolin Version: 1.18.4
- Gerbil Version:
- Traefik Version:
- Newt Version:
- Client Version: pangolin-cli 0.8.1
To Reproduce
- Set HOME environment variable to a directory without write permission for regular users (for example /root)
- Run
pangolin completion fish >output.txt - Check written file, error messages should be included.
Expected Behavior
Error messages should be sent to stderr.
- Dominant language
- Go
- Stars
- 54
- Forks
- 19
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 11
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fosrl/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
CLI on Windows not able to switch org (and account)May be free again @oschwartz10612 claimed this 67 days ago, and no pull request is open. Openbug
fosrl/cli#121 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
Fix the nix packageOpengood first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 28/100
Maintainers usually reply within 1 day
Similar issues
-
needs-area needs-kind needs-priority needs-status needs-triage
Difficulty 2/5 Under an hour Newbie friendliness 85/100
cncf/automation#736 ·
Maintainers usually reply within 1 day
-
kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Telegram webhook: line breaks lost since switch to rich messagesPossibly taken @Kshot3000 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
shukiv/jabali-panel#2029 ·
Maintainers usually reply within 1 day
-
[submenu] nil issue on ubuntu 26.04Possibly taken @egoist claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day