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

Always use forward slash as path separator in lockfile #1276

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

fsoikin
Copy link
Collaborator

@fsoikin fsoikin commented Aug 28, 2024

Description of the change

Fixes #1158

Checklist:

  • Added the change to the "Unreleased" section of the changelog
  • [ ] Added some example of the new feature to the README
  • Added a test for the contribution (if applicable)

-- When writing lockfile, we specifically always use forward slash as path
-- separator to ensure that the lockfile doesn't keep changing when team
-- members run Spago on different platforms.
forwardSlashPath = path # String.replaceAll (String.Pattern Path.sep) (String.Replacement "/")
Copy link
Member

Choose a reason for hiding this comment

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

We have withForwardSlashes in the Prelude

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh indeed! Haven't noticed that.

Copy link
Member

@f-f f-f left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@f-f f-f merged commit a7827be into purescript:master Aug 28, 2024
5 checks passed
@fsoikin fsoikin deleted the nested-project-path-separator branch August 28, 2024 22:30
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.

spago.lock.yaml uses OS-dependent path separator
2 participants