Sam Alba
9669d5fce8
test: disabled test on private repo (repo_test.go:56: ssh: handshake failed: knownhosts: key mismatch)
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-11-17 16:23:53 -08:00
Sam Alba
7450c70214
mod/stdlib: attempt to remove the lock file after file unlock
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-11-17 16:23:23 -08:00
Andrea Luzzardi
d065a1f627
Revert "Improve version checking to also check universe"
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-11-09 18:58:09 -08:00
Sam Alba
1dd538e729
mod: defer Unlock to avoid deadlocks in the pkg manager
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-11-08 17:29:33 -08:00
Sam Alba
6acc7e2c4d
Merge pull request #1085 from TomChv/feat/check-universe-version
...
Improve version checking to also check universe
2021-11-08 15:23:59 -08:00
Sam Alba
285edb4cf0
mod: fix mod get
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-11-03 21:53:38 -07:00
Tom Chauveau
5f0a4202c9
Complete version checking with getUniverseCurrentVersion
...
Dagger now compare the remote universe version with the one written
in dagger.mod.
I've also added logs to easily debug code
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-10-29 19:31:59 +02:00
Sam Alba
5e6d1261f7
mod: lock the version of universe for updates of package
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-10-22 15:37:28 -07:00
Sam Alba
779dda1aca
mod: added basic logging + context in sub libs
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-10-22 11:02:34 -07:00
Sam Alba
d34bd86d99
mod: added unit tests for version constraint support
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-10-22 10:00:21 -07:00
Sam Alba
cee8c91e50
mod: added support for version constraint when fetching a remote version
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2021-10-21 17:50:18 -07:00
Sam Alba
20ccf71654
mod: fixed unit tests to match the new universe repo structure
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-10-19 17:48:09 -07:00
Sam Alba
e9ca8f38e6
Vendoring improved
...
* update dagger init with package manager downloading stdlib
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* split mod get and update functions
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* write to package checksum to dagger.sum when installing/updating
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* encure checksums are valid when compiling input
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* remove references to github.com/tjovicic in docs 1010 and 1011
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* refactor mod get command
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* update logic of moving dir when installing packages
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* fix linting errors
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* revert changes to 1010 docs
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* updating error log line in mod/get
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* fix ci tests when using vendoring
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* update alpha.dagger.io version to v0.1
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* fix mod repo test
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* return error if package already installed
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* remove already installed packages when installing
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* fix issue when vendoring stdlib
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* update mod command with filelock while installing
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* fix linting errors
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
* fix path of mod lock file
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
Co-authored-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-10-13 15:25:30 -07:00