Replies: 2 comments 3 replies
-
|
I think we should treat this as a bug, I cannot come up with any reason why you would not want Notable details:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Opened #1588. @AThePeanut4 does this make sense? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(I am posting this here instead of opening an Issue because it is open for discussion whether this is an unexpected bug, a documentation oversight, or a missing feature.)
Currently, the help text for
--envsimply describes it as "Set environment variables," which is somewhat oversimplified. In practice,--envapplies variables to the currenttopgradeprocess, which are then inherited by its child processes.However, it is well known that the
sudoboundary does not preserve most environment variables by default, including those set via--env. Consequently, for commands that require bothsudo(e.g.,apt) and network proxies (e.g.,https_proxy="..."), Topgrade currently lacks a way to pass these proxy variables through to the underlying command (e.g.,apt).There are likely three ways to address this:
--envargument topreserve_env_list()and pass them toSudoExecuteOpts.--envis not guaranteed to be passed to commands requiringsudo.--sudo-envor--sudo-preserve-env-type) that allow users to specify additional variables or configure how variables are preserved across thesudoboundary.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions