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.

Support Build & Setup Environment Variables

See original GitHub issue

In my case I have a postCreateCommand that clones another organization repo. This works great under Codespaces but is hanging when using this project. I think what I see is that 🏃 start container will stop here.

Cloning into '/workspaces/mysharedrepo'...
Username for 'https://github.com/':

And never move from that spot. The lifecycle script is doing something like this.

git clone "https://${GITHUB_TOKEN}@github.com/myorg/mysharedrepo.git" /workspaces/mysharedrepo
cd /workspaces/mysharedrepo

Any recommendations to get that working?

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Oblynxcommented, Nov 17, 2022

You can start with passing env to both. Then if an issue is reported with this behavior, we can split it up.

1reaction
metaskillscommented, Jul 4, 2022

Would it make sense to have the env: variables be accessible to both the build and start stages? That might help here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set environment variables to configure builds
To set environment variables for local builds, you append the --env flag to the pack command for each environment variable.
Read more >
Create and Modify Environment Variables on Windows
To create or modify environment variables on Windows 10: On the Windows taskbar, right-click the Windows icon and select System. In the Settings...
Read more >
How To Set Environment Variables
Setting environment variables in Windows using the GUI is hidden behind several layers of settings dialogs. To open the respective interface you ...
Read more >
Build environment variables
Identify environment variables available in the build environment, set your own environment variables, and use environment variables during builds.
Read more >
Configuring Environment Variables and Secrets
Click on Environment in the left pane, and then click on Add Environment Variable. Service environment. Enter the Key and Value for your...
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