-
Notifications
You must be signed in to change notification settings - Fork 90
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
Conversation
Please enter the commit message for your changes. Lines starting
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. |
3db3e2b
to
b2917ec
Compare
Windows failures are due to MAX_PATH issues with symlinks... that'll requires another bugfix in ghcup. |
c68ceed
to
f8970d8
Compare
All set! From my side, this can be merged. |
I'm also trying to fix the PATH issues btw... so hold on |
src/utils.ts
Outdated
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!); | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
Is there anything left? |
Only one more review run |
There was a problem hiding this 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!
This will most likely fail in CI, because of https://gitlab.haskell.org/haskell/ghcup-hs/-/commit/0c70feb09c54bf06ee9ceddfaf808b2ca1027688