Skip to content

Commit

Permalink
Always use forward slash as path separator in lockfile (#1276)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoikin authored Aug 28, 2024
1 parent c21dc50 commit a7827be
Show file tree
Hide file tree
Showing 6 changed files with 504 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Other improvements:
cached locally.
- `spago publish` now allows to publish a package with some test (but only
test!) dependencies not present in the registry.
- always using forward slash as path separator in lockfile, regardless of the
platform, so that the lockfile doesn't keep changing when team members run
Spago on different platforms.

## [0.21.0] - 2023-05-04

Expand Down
2 changes: 1 addition & 1 deletion src/Spago/Config.purs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ rootPackageToWorkspacePackage { rootPackage, workspaceDoc } = do

workspacePackageToLockfilePackage :: WorkspacePackage -> Tuple PackageName Lock.WorkspaceLockPackage
workspacePackageToLockfilePackage { path, package } = Tuple package.name
{ path
{ path: withForwardSlashes path
, core: { dependencies: package.dependencies, build_plan: mempty }
, test: { dependencies: foldMap _.dependencies package.test, build_plan: mempty }
}
Expand Down
Loading

0 comments on commit a7827be

Please sign in to comment.