Skip to content

feat(flakes): ref field #994

@Malix-Labs

Description

@Malix-Labs

Context

Flakes that are not of git type doesn't support targeting a different ref than the default ref (default branch)

Problem

Flakes that are not of git type and doesn't target the default ref (default branch) are forced to use the git field and append "?ref=" to their url string value to specify their (non default) ref

Solution

For flakes, feature a new "ref" field to specify for a non-default ref (different than the default branch)

Example

[[sources]]
type = "git"
url = "git+https://github.com/hannesgith/rquickshare?ref=flake"

With this solution, would become

[[sources]] 
type = "github"
owner = "hannesgith"
repo = "rquickshare"
ref = "flake"

For more, see #996

References

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