Skip to content

Conversation

@hasufell
Copy link
Member

@hasufell hasufell requested a review from fendor March 17, 2022 19:15
Please enter the commit message for your changes. Lines starting
@hasufell
Copy link
Member Author

I started an alpha release pipeline: https://gitlab.haskell.org/haskell/ghcup-hs/-/pipelines/49115

Once the binaries are built there, we can manually test.

@hasufell hasufell force-pushed the issue-540 branch 3 times, most recently from 3db3e2b to b2917ec Compare March 17, 2022 20:52
@hasufell
Copy link
Member Author

Windows failures are due to MAX_PATH issues with symlinks... that'll requires another bugfix in ghcup.

@hasufell hasufell mentioned this pull request Mar 18, 2022
@hasufell hasufell force-pushed the issue-540 branch 2 times, most recently from c68ceed to f8970d8 Compare March 18, 2022 21:35
@hasufell
Copy link
Member Author

All set! From my side, this can be merged.

@hasufell
Copy link
Member Author

I'm also trying to fix the PATH issues btw... so hold on

src/utils.ts Outdated
Comment on lines 317 to 323
export function resolvePATHPlaceHolders(path: string, folder?: WorkspaceFolder) {
return path
.replace('${HOME}', os.homedir)
.replace('${home}', os.homedir)
.replace('$PATH', process.env.PATH!)
.replace('${PATH}', process.env.PATH!);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this new? According to the docs, this should have worked already, or is this for better error messages?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand your question. resolvePATHPlaceHolders is not the same as resolvePathPlaceHolders.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I did not even consciously notice that there are two functions with an almost identical name...

Why are there two very similar functions, and this one has an unused parameter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Why are there two very similar functions, and this one has an unused parameter?

Because this function replaces PATH, which is not a generic path variable, so they do different things.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe we don't even need it at all and can pass it unchanged. I haven't tested.

Copy link
Collaborator

Choose a reason for hiding this comment

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

How do we test whether we need it?

@hasufell hasufell requested a review from fendor March 20, 2022 15:24
@hasufell
Copy link
Member Author

Is there anything left?

@fendor
Copy link
Collaborator

fendor commented Mar 22, 2022

Is there anything left?

Only one more review run

Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

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

LGTM, let's get it merged!

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.

3 participants