Skip to content

Proper relative paths for script resolvers - #4591

Merged
snoyberg merged 2 commits into
masterfrom
relative-script-snapshots
Feb 19, 2019
Merged

snoyberg merged 2 commits into
masterfrom
relative-script-snapshots

Conversation

@snoyberg

@snoyberg snoyberg commented Feb 18, 2019 •

Copy link
Copy Markdown
Contributor

Previously, any relative paths in a script's --resolver flag would be
considered relative to the current working directory. It's more logical
and consistent to have it relative to the directory the script lives in.
This makes the change.

Possible argument: it's a bit weird to put the resolver root into the
GlobalOptsMonoid value. Overall it seems like the best option to me, but
I'm open to other approaches.

Note: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.

Please include the following checklist in your PR:

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary.

Please also shortly describe how you tested your change. Bonus points for added tests!

Previously, any relative paths in a script's --resolver flag would be
considered relative to the current working directory. It's more logical
and consistent to have it relative to the directory the script lives in.
This makes the change.

Possible argument: it's a bit weird to put the resolver root into the
GlobalOptsMonoid value. Overall it seems like the best option to me, but
I'm open to other approaches.
@snoyberg snoyberg mentioned this pull request Feb 18, 2019
2 tasks done
@snoyberg
snoyberg merged commit d810320 into master Feb 19, 2019
@snoyberg
snoyberg deleted the relative-script-snapshots branch March 7, 2019 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant