vpkg-project / vpkg

An alternative package manager for V.
https://vpkg-project.github.io
MIT License
115 stars 10 forks source link

[BUG] v.mod gets overwritten #32

Open serkonda7 opened 4 years ago

serkonda7 commented 4 years ago

When running a vpkg command many lines in the v.mod file are deleted.

Module {
    name: 'symlinker',
    description: 'Utility to manage symlinks',
    author: 'Lukas Neubert <lukas.neubert3@gmail.com>',
    license: 'MIT',
    repo_url: 'https://github.com/Serkonda/symlinker',
    version: '0.4.0',
    dependencies: ['chalk']
}

is stripped down to this:

Module {
    name: 'symlinker',
    version: '0.4.0',
    deps: ['chalk']
}

First error is that the deps property is not conform with the official v.mod and should be changed to dependencies.

Second I think that vpkg should not alter any line except the dependencies array. So that all the other information is kept.

nedpals commented 4 years ago

Thanks for reporting it. Still in a middle of simplifying/refactoring for 0.8