Closed jmoalves closed 3 years ago
I think this action is impossible (or at least innocuous). The fetch
function does not have an option for proxy url.
This action is impossible to implement using Deno 1.8.1.
To circumvent this issue, the user can define the variables outside levain. HTTP_PROXY HTTPS_PROXY NO_PROXY
We need a new action to inform the proxy URL for levain use. We could define the "HTTP_PROXY" and "HTTPS_PROXY" variables, but this approach does not work for the running levain.
Deno respects these environment variables in the
fetch
function. However, if we define them in a child process (even using thesetx
directive at Windows), the running Deno does not read them.A better approach would be to use a new action
setProxy
. This action could set the environment variable as well.Suggested syntax:
setProxy [--setEnv] [--setEnvPermanent] url