Skip to content

Incomplete documentation for Publishing packages on Repository #2543

Closed

Description

@tckb

What is the issue?

Context

as documented in push-package-on-repository

[...] you will directly be able to retrieve the personal package using the dagger project update url@tag command.

Consumers of the package can retrieve the package by the tag however the documentation does not specify any specific format of the tag when pushing the library to the repository.

Problem

as per the implementation, dagger will actually enforce the tag in a format that is compatible to the upstream cue-lang package versioning, to be clear this is v<tag>. Without this knowledge - it is pretty difficult to find out the reason without enabling the debug logs.

without debug logs

dagger project update -u          
8:54AM INF system | updating all installed packages...
8:54AM ERR system | error installing/updating packages: repo doesn't have any tags matching the required version

with debug logs

dagger project update -u --log-level debug                   
10:51AM INF system | updating all installed packages...
10:51AM DBG system | updating module    name=github.com/xxxx/[email protected]
10:51AM DBG system | checkout repo    commit=4c9d7dbc5aa14389f3c5df2e551fd423f48d5b88 repository=github.com/xxxx/mylib version=0.0.1
10:51AM DBG system | tag version ignored, wrong format    repository=github.com/xxxx/mylib tag=0.0.1 versionConstraint=

Solution

Option 1 - Be Explicit (preferred)

1 . Update the above mentioned documentation and include and explain the tag format and reason for enforcing this rule.
2. Add warn message that the tag mentioned during

dagger project update github.com/xxxx/mylib@tag

does not comply with the tag format.

Option 2 - Remove the enforcement of the tag format

The idea is not remove the tag format, until the package management of cuelang is finalized.

Activity

  1. added
    area/documentation
    on Jun 1, 2022
  2. helderco commented on Jun 1, 2022

    @helderco
    Contributor

    Thanks for reporting. We'll improve the documentation and CLI output. You're welcome to contribute it, of course 🙂

  3. mircubed commented on Jun 1, 2022

    @mircubed
    Contributor

    @helderco as we work on improving docs, could I assign this issue to you to update the docs or should we make a separate issue?

  4. self-assigned this
    on Jun 2, 2022
  5. helderco commented on Jun 2, 2022

    @helderco
    Contributor

    This does seem like it requires two PRs (docs and cli), but they can go into one: "Clarify git tag format for versions". So I think it's ok to use this one.

  6. mircubed commented on Jun 17, 2022

    @mircubed
    Contributor

    @helderco sounds good! I created an issue to track the error message improvements in #2671

  7. helderco commented on Jun 17, 2022

    @helderco
    Contributor

    Not thinking about adding a warning on install because I imagine using branches should be supported, it's just the way we store that and update that needs fixing.

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

Metadata

Metadata

Assignees

Labels

area/documentationkind/user-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions