question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation should mention variable expansion works only in [[source]] entries

See original GitHub issue

At least on Windows, in a file string, environment variables are not being expanded.

_python-ldap = {platform_system = "== 'Windows'", file = "%USERPROFILE%/Downloads/python_ldap-3.1.0-cp36-cp36m-win_amd64.whl"}

WARNING: Invalid requirement, parse error at “‘%USERPRO’” ABORTING INSTALL… You will have to reinstall any packages that failed to install.

The same thing happens for ${USERPROFILE} and $USERPROFILE. Python 3.6.5 Pipenv 2018.05.18

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
OrangeDogcommented, Jun 7, 2018

there’s nothing to fix

The documentation should make it clear that they only work in [[source]]. The whole section may even be redundant to the “Injecting credentials into Pipfiles via environment variables” section.

1reaction
uranusjrcommented, May 6, 2019

The implementation uses expandvars, which (according to the documentation) accepts %...% form on Windows. But yeah ${...} is probably better if you want to do this on multiple platforms.

Reopening (and changing the title) to track the doc amendment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where variables can be used - GitLab Docs
The variable expansion is made by the execution shell environment. artifacts:name, yes, Runner, The variable expansion is made by GitLab Runner's shell ...
Read more >
"Make" Variables | Bazel
"Make" variables are a special class of expandable string variables available to attributes marked as "Subject to 'Make variable' substitution". These can ......
Read more >
Custom variables expansion — Dataiku DSS 11 documentation
Variables expansion in a mechanism in DSS that allows you to use some shared and reusable variables in several parts of the Studio....
Read more >
Using Variables - Ansible Documentation
Defining variables at runtime​​ You can define variables when you run your playbook by passing variables at the command line using the --extra-vars...
Read more >
GNU make
Note that this rule not only is not a prerequisite, it also does not have any prerequisites, ... Then make will perform variable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found