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

Tweak ghcup upgrade #83

Merged
merged 1 commit into from
Apr 10, 2019
Merged

Tweak ghcup upgrade #83

merged 1 commit into from
Apr 10, 2019

Conversation

hasufell
Copy link
Member

  1. add --inplace flag
  2. by default install into BIN_LOCATION

@hasufell hasufell requested review from hvr and fommil March 31, 2019 14:15
Copy link
Contributor

@fommil fommil left a comment

Choose a reason for hiding this comment

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

I'll try to remember to us -i the time after the next time I call it 😄

@hasufell
Copy link
Member Author

hasufell commented Apr 1, 2019

I'll try to remember to us -i the time after the next time I call it

I don't even understand the use case exactly...

Also @Franciman would that break anything?

@fommil
Copy link
Contributor

fommil commented Apr 1, 2019

As I understand it, the current default behaviour changes and I must provide -i to update the script inplace... or did I misunderstand? I'd obviously prefer that inplace was the default but I assume you have reasons why this is not good, and I am fine typing two extra characters.

@Franciman
Copy link

Franciman commented Apr 1, 2019

Hi, thanks for noticing me, it won't break anything on vabal side, as soon as ghcup stays in PATH.

@fommil
Copy link
Contributor

fommil commented Apr 1, 2019

my ghcup is in PATH too so maybe this doesn't affect me, I guess this might only matter if the script is called explicitly?

@hasufell
Copy link
Member Author

hasufell commented Apr 1, 2019

The default behavior now is:

  1. upgrade into ${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup
  2. if passed --inplace will upgrade at the location of where the script is at (wherever that is)
  3. if invoked ghcup upgrade <some-dir> then will place it there

Is that too confusing?

@fommil
Copy link
Contributor

fommil commented Apr 1, 2019

ok thats' what I thought from reading the source code, the comments here confused me. I might move my script location to ~/.ghcup/bin just to make this easier to manage.

1. add --inplace flag
2. by default install into BIN_LOCATION
@hasufell hasufell merged commit 36e8389 into master Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants