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

Install.sh should not fail inside activated environment #1083

Merged
merged 4 commits into from
Nov 7, 2020

Conversation

mdrohmann
Copy link
Collaborator

@mdrohmann mdrohmann commented Nov 5, 2020

The problem here was that the install scripts called state export config --filter=dir.

Whether needed or not (state export config does not need it), we are always
trying to open a project file, and in an activated environment it first tries
to resolve the project file from the environment variable ACTIVESTATE_PROJECT
and fails with the "corrupted environment" error that bubbled up in the installation scripts - if that file does not exist.

This PR changes that behavior and attempts other ways to resolve a project file
(from working directory and the default directory)

https://www.pivotaltracker.com/story/show/175600566

@mdrohmann mdrohmann requested a review from Naatan November 5, 2020 19:37
@mdrohmann mdrohmann force-pushed the martind/install-sh-inside-env-175600566 branch from 9157b8e to 7e8be7a Compare November 5, 2020 19:44
pkg/projectfile/projectfile.go Outdated Show resolved Hide resolved
@mdrohmann mdrohmann force-pushed the martind/install-sh-inside-env-175600566 branch from 2c7629a to 291589b Compare November 6, 2020 16:53
@mdrohmann mdrohmann requested a review from Naatan November 6, 2020 17:05
installers/install.sh Outdated Show resolved Hide resolved
Co-authored-by: Nathan Rijksen <nathanr@activestate.com>
@mdrohmann mdrohmann requested a review from Naatan November 6, 2020 17:55
Naatan
Naatan previously approved these changes Nov 6, 2020
@mdrohmann mdrohmann merged commit 13007c6 into master Nov 7, 2020
@mdrohmann mdrohmann deleted the martind/install-sh-inside-env-175600566 branch November 7, 2020 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants