Skip to content

Add WORKSPACE_DIRECTORY environment variable to devcontainer and script.core#11477

Merged
ludeeus merged 3 commits intohome-assistant:devfrom
mib1185:script.core/use-PWD-env-variable
Feb 12, 2022
Merged

Add WORKSPACE_DIRECTORY environment variable to devcontainer and script.core#11477
ludeeus merged 3 commits intohome-assistant:devfrom
mib1185:script.core/use-PWD-env-variable

Conversation

@mib1185
Copy link
Copy Markdown
Member

@mib1185 mib1185 commented Jan 28, 2022

Proposed change

use PWD env variable instead of static /workspaces/frontend which fails, when the repo is checked out into another folder (eg. /workspaces/homeassistant-frontend)

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@balloob
Copy link
Copy Markdown
Member

balloob commented Jan 28, 2022

This is a script used in our devcontainer. Joakim wrote it so let him review. I'm fine with making it more generic as long as the devcontainer continues to work 👍

@balloob balloob removed their request for review January 28, 2022 21:41
@mib1185
Copy link
Copy Markdown
Member Author

mib1185 commented Jan 28, 2022

I'm using the dev-container, but i did not clone the repo into frontend, but homeassistant-frontend so workspace folder is not /workspaces/frontend but /workspaces/homeassistant-frontend

@mib1185 mib1185 requested a review from ludeeus February 12, 2022 00:21
Copy link
Copy Markdown
Member

@ludeeus ludeeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@ludeeus ludeeus changed the title Use PWD environment variable in script.core Add WORKSPACE_DIRECTORY environment variable to devcontainer and script.core Feb 12, 2022
@ludeeus ludeeus merged commit bef6591 into home-assistant:dev Feb 12, 2022
@mib1185 mib1185 deleted the script.core/use-PWD-env-variable branch February 12, 2022 11:21
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants