vpkg-project / vpkg Goto Github PK
View Code? Open in Web Editor NEWAn alternative package manager for V.
Home Page: https://vpkg-project.github.io
License: MIT License
An alternative package manager for V.
Home Page: https://vpkg-project.github.io
License: MIT License
PS E:\code\v> v build .\vpkg
vpkg\api\lockfile.v:36:5: error: unexpected lock
, expecting name
34 |
35 | fn get_lockfile_path(dir string) string {
36 | return os.join_path(dir, '.vpkg-lock.json')
| ~~~~
37 | }
38 |
I just realized that neither vpkg or the registry have an open source license in their repository. Would it be possible to add one?
Error in decode() for api__Lockfile error_ptr=: %s
0 package was installed successfully.
Where is the cause?
Hi,
running latest package (prebuilt) of vpkg (vpkg-0.7.1-linux) in a Ubuntu 19.10 PC x64 I get the following error:
vpkg-0.7.1-linux: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
But if I checkout sources and build with latest V stable (0.1.24), and run the built version all is good.
I wonder if the same happens to someone other, or if binary package as to be rebuilt.
Dimensions of files are different:
-rwxr-xr-x 1 sandrom users 283480 feb 14 16:45 ./vpkg-0.7.1-linux* -> downloaded binary
-rwxr-xr-x 1 sandrom users 185744 mar 19 17:58 /usr/local/bin/vpkg* -> built today
Last, note that if I try to build with latest V sources I got compilation errors but I know there are too many moving parts in V at the moment.
Hope it's good to someone other.
Bye, sandro
vcpkg install devil:x86-windows-static
Computing installation plan...
The following packages will be built and installed:
devil[core,jasper,lcms,libjpeg,libpng,openexr,tiff]:x86-windows-static
(' /usr/bin/bash: -c: line 0:
PATH=/usr/bin;pacman-key --verify C:/Program Files (x86)/vcpkg/downloads/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig'I have a package with v.mod
contains version set to 0.2.0
.
vpkg release --inc patch
it sets version to v0.2.00.2.1
.vpkg release --inc minor
it sets version to v0.2.00.1.0
.vpkg release --inc major
it sets version to v0.2.01.0.0
.I tried to change version in v.mod
to other ones (e.g. 1.0.0
, 0.0.1
, the result is similar).
Any news on updates?
How is versioning handled? If I understood the code right, the "update" command always updates to the most current commit in a repository.
If that's the case, wouldn't it make more sense to get the repository at the commit in which the version number has been changed or something like that? A new version would then be created when the version number in vpkg.json changes.
0[11:37:12]delian@nemesis: /v/vpkg/xxx $ vpkg init
Package manifest file was created successfully.
0[11:37:15]delian@nemesis: /v/vpkg/xxx $ ls -la
total 12
drwxrwxr-x 2 delian delian 4096 сеп 22 11:37 ./
drwxrwxr-x 4 delian delian 4096 сеп 22 11:37 ../
-rw-rw-r-- 1 delian delian 161 сеп 22 11:37 vpkg.json
0[11:37:16]delian@nemesis: /v/vpkg/xxx $ cat vpkg.json
{
"name": "xxx",
"version": "1.0"
"author": ["Author Name <[email protected]>"],
"repo": "https://github.com/username/repo",
"dependencies": []
}0[11:37:18]delian@nemesis: /v/vpkg/xxx $ vpkg get
Cannot read /v/vpkg/xxx
Error in decode() for Lockfile error_ptr=: %s
0[11:37:32]delian@nemesis: /v/vpkg/xxx $ ls -la
total 16
drwxrwxr-x 2 delian delian 4096 сеп 22 11:37 ./
drwxrwxr-x 4 delian delian 4096 сеп 22 11:37 ../
-rw-rw-r-- 1 delian delian 161 сеп 22 11:37 vpkg.json
-rw-rw-r-- 1 delian delian 42 сеп 22 11:37 .vpkg-lock.json
0[11:37:45]delian@nemesis: /v/vpkg/xxx $ cat .vpkg-lock.json
{
"version": "0.5",
"packages": []
}0[11:37:48]delian@nemesis: /v/vpkg/xxx $ vpkg get
0 package was installed successfully.
0[11:37:50]delian@nemesis: /v/vpkg/xxx $ vpkg update
Fetching lockfile
Updating packages
0 package was updated successfully.
0[11:38:07]delian@nemesis: /v/vpkg/xxx $ ls -la
total 16
drwxrwxr-x 2 delian delian 4096 сеп 22 11:37 ./
drwxrwxr-x 4 delian delian 4096 сеп 22 11:37 ../
-rw-rw-r-- 1 delian delian 161 сеп 22 11:37 vpkg.json
-rw-rw-r-- 1 delian delian 46 сеп 22 11:38 .vpkg-lock.json
0[11:38:10]delian@nemesis: /v/vpkg/xxx $ rm .vpkg-lock.json
0[11:38:16]delian@nemesis: /v/vpkg/xxx $ vpkg update
Fetching lockfile
Cannot read /v/vpkg/xxx
Error in decode() for Lockfile error_ptr=: %s
0[11:38:19]delian@nemesis: /v/vpkg/xxx $ vpkg update
Fetching lockfile
Updating packages
0 package was updated successfully.
0[11:38:20]delian@nemesis: /v/vpkg/xxx $
This is just a question. As I don't see any more commits since April 18.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.