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

When deploying function, the environment variables are overwritten. #282

Open
copyrighthero opened this issue Jul 17, 2021 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@copyrighthero
Copy link

Describe the bug
When deploying the function through the VSCode plugin, the remote environment variables are cleared and overwritten.

To Reproduce
Steps to reproduce the behavior:

  1. Click Deploy button on the VSCode plugin for the functions;
  2. Go to your console, check the corresponding functions' settings;
  3. See that previous environment variables were replaced by the following:
    {"LD_LIBRARY_PATH":"/code/.fun/root/usr/local/lib:/code/.fun/root/usr/lib:/code/.fun/root/usr/lib/x86_64-linux-gnu:/code/.fun/root/usr/lib64:/code/.fun/root/lib:/code/.fun/root/lib/x86_64-linux-gnu:/code/.fun/root/python/lib/python2.7/site-packages:/code/.fun/root/python/lib/python3.6/site-packages:/code:/code/lib:/usr/local/lib","NODE_PATH":"/code/node_modules:/usr/local/lib/node_modules","PATH":"/code/.fun/root/usr/local/bin:/code/.fun/root/usr/local/sbin:/code/.fun/root/usr/bin:/code/.fun/root/usr/sbin:/code/.fun/root/sbin:/code/.fun/root/bin:/code:/code/node_modules/.bin:/code/.fun/python/bin:/code/.fun/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/sbin:/bin","PYTHONUSERBASE":"/code/.fun/python"}

Expected behavior
The previously set env vars should persist, these run-time related env vars should not have replaced and cleared previous ones.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS BigSur 11.4
  • VSCode Version: 1.58.2
  • Aliyun Serverless Extension Version: 1.27.17
@copyrighthero copyrighthero added the bug Something isn't working label Jul 17, 2021
@shengxq
Copy link

shengxq commented Dec 31, 2021

@copyrighthero
这个bug什么时候能解决啊?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants