Skip to content

Fix updating a CUE module when installed with a branch #2672

Closed as not planned

Description

@helderco

Problem

We allow installing modules with a branch today, but this is giving reproducibility issues. When updating packages today, only git tags are considered for finding latest versions (instead of considering branches). The best fix is to not store branches in dagger.mod but convert to pseudo-versions instead.

This is planned in #2502 but maybe there's a quicker fix we can make to allow some users to update packages using a branch.

Stop-gap solution

When updating packages (i.e., dagger project update -u), if using a branch for a version, get the latest commit for that branch, updating dagger.sum.

Related

Activity

  1. changed the title [-]Fix updating a module when installed with a branch[/-] [+]Fix updating a CUE module when installed with a branch[/+] on Dec 21, 2022
  2. helderco commented on Dec 7, 2023

    @helderco
    ContributorAuthor

    Closing. More context in parent issue: #2163.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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