Skip to content

get-stack.sh script does not first apt-get update #2898

@snoyberg

Description

@snoyberg

Actions:

  1. Spin up brand new Ubuntu 16.04 EC2 instance
  2. Run the get-started script via 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) manually apt-get install them, or delete /usr/local/bin/stack and rerun the script after running apt-get update. I would expect one of two behaviors to occur:

  1. If system package installation fails, do not install the stack exe
  2. If apt-get install fails, run apt-get update

I'm guessing the former is more practical, while the latter could be tweaked to always run apt-get update

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions