-
Notifications
You must be signed in to change notification settings - Fork 841
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
get-stack.sh script does not first apt-get update #2898
Comments
Yeah, I think option 1 with a friendly error message ("please run |
Hey there! I would like to try implementing this. Here's what I have so far, let me know if this is the right way to approach it. If it is, I'll go ahead and add similar functionality for yum/dnf/apk. Thanks! |
@alexeyzab That looks like the right approach to me! |
@borsboom Great! I've added similar warnings for other package managers. |
Fixed by #2909 |
Actions:
wget -qO- https://get.haskellstack.org/ | sh
Expected:
All system packages will be installed
Actual:
I get an error message because I haven't yet run
apt-get update
, system package installation fails, but Stack installation succeeds. In order to get the necessary packages, I then need to either (1) manuallyapt-get install
them, or delete/usr/local/bin/stack
and rerun the script after runningapt-get update
. I would expect one of two behaviors to occur:I'm guessing the former is more practical, while the latter could be tweaked to always run
apt-get update
The text was updated successfully, but these errors were encountered: