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

Manage all the Haskell things #547

Merged
merged 27 commits into from
Mar 23, 2022
Merged

Manage all the Haskell things #547

merged 27 commits into from
Mar 23, 2022

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
src/hlsBinaries.ts Outdated Show resolved Hide resolved
src/hlsBinaries.ts Outdated Show resolved Hide resolved
@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
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?

src/utils.ts Show resolved Hide resolved
src/hlsBinaries.ts Outdated Show resolved Hide resolved
src/hlsBinaries.ts Show resolved Hide resolved
src/hlsBinaries.ts Outdated Show resolved Hide resolved
src/hlsBinaries.ts Outdated Show resolved Hide resolved
src/hlsBinaries.ts Show resolved Hide resolved
README.md Show resolved Hide resolved
src/hlsBinaries.ts Show resolved Hide resolved
@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