buildinspace / peru

a generic package manager, for including other people's code in your projects
MIT License
1.11k stars 69 forks source link

on `reup` update rev with latest tag if rev is a tag #233

Open Araxeus opened 1 year ago

Araxeus commented 1 year ago
imports:
    vscode: scripts/

git module vscode
    url: git://github.com/microsoft/vscode.git
    rev: 1.75.0

peru reup -f

imports:
    vscode: scripts/

git module vscode
    url: git://github.com/microsoft/vscode.git
    rev: 1.75.1

Currently, the rev will be replaced with the latest commit hash instead of the latest tag related to https://github.com/buildinspace/peru/issues/193#issuecomment-1433013723

Araxeus commented 1 year ago

Implemented this myself in #234 since it seemed easy to do, and it shouldn't cause any breaking