Skip to content

Strange behavior with invalid snapshot passed to stack new #6846

@sjshuck

Description

@sjshuck

Stack version: 3.9.1

I ran

stack new --snapshot lts.24.26 blah

Note that the first . should have been a -. It quietly created a new Stack project without a stack.yaml. After going inside and running stack build, it gave the standard "Perhaps you need to run stack init?" error.

Not sure what the desired behavior is here but it probably shouldn't be that.

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