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

Update the Juvix lock file when the Package file changes #2522

Merged
merged 9 commits into from
Nov 22, 2023

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Nov 17, 2023

Adds a new version of the lock file that stores the hash (sha256 digest) of the package file (Package.juvix, juvix.yaml) it was generated from as a field:

# This file was autogenerated by Juvix version 0.5.4.
# Do not edit this file manually.

version: 2
checksum: d05940a4d3dc0e15451d02e1294819c875ba486ee54e26865ba8d190ac7c27c3
dependencies:
- git:
    name: stdlib
    ref: f68b0614ad695eaa13ead42f3466e0a78219f826
    url: https://github.com/anoma/juvix-stdlib.git
  dependencies: []

The lock file is regenerated when the hash of the package file doesn't match the value of the checksum field, i.e when the user updates the package file.

Existing lock files are automatically migrated to version 2.

@paulcadman paulcadman self-assigned this Nov 17, 2023
@paulcadman paulcadman added the enhancement New feature or request label Nov 17, 2023
@jonaprieto jonaprieto added this to the 0.5.5 milestone Nov 17, 2023
@paulcadman paulcadman marked this pull request as ready for review November 20, 2023 18:54
Copy link
Collaborator

@jonaprieto jonaprieto left a comment

Choose a reason for hiding this comment

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

LGTM

@jonaprieto jonaprieto merged commit 1c1a5b7 into main Nov 22, 2023
4 checks passed
@jonaprieto jonaprieto deleted the lockfile-auto-update branch November 22, 2023 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package-manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically update the lock file when the project dependencies and lock file are not in sync
2 participants