vpkg icon indicating copy to clipboard operation
vpkg copied to clipboard

[BUG] v.mod gets overwritten

Open serkonda7 opened this issue 5 years ago • 1 comments

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 <[email protected]>',
	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.

serkonda7 avatar Jun 25 '20 10:06 serkonda7

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

nedpals avatar Jun 25 '20 11:06 nedpals