Joel Longtine
43a46128e0
Remove pre-Europa tests
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
b33d6b2243
Remove dependence on project, use cue.mod path.
...
Ensure that we have done an init in this folder.
Also, force a clean checkout of the tag we've chosen to upgrade to.
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-27 16:54:42 -07:00
Alvise88
f5da25870b
Unified git repository management
...
Signed-off-by: Alvise88 <vitalvise@gmail.com>
2022-01-18 09:38:50 +01:00
Sam Alba
42c4cd7c3e
mod: fix unit tests since dagger/universe is no more available
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2022-01-13 15:46:34 -08:00
Andrea Luzzardi
282759c0e5
cue modules: move stdlib to pkg/alpha.dagger.io
...
In preparation for Europa, we will vendor multiple CUE modules:
- `pkg/alpha.dagger.io`: legacy non-europa packages
- `pkg/dagger.io`: core Europa packages
- `pkg/universe.dagger.io`: Europa universe
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-11 13:16:37 -08:00
Andrea Luzzardi
bbc938ddd6
Merge pull request #1196 from TomChv/feat/check-universe-version
...
Add universe check version in europa up
2021-12-21 17:58:17 +01:00
Tom Chauveau
b1188960df
Add universe check version in europa up
...
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2021-12-16 16:06:50 +01:00
Joel Longtine
ec427aff66
Clean up tests
...
Signed-off-by: Joel Longtine <joel@longtine.io>
2021-12-13 16:28:51 -07:00
Joel Longtine
870410be51
First pass at private repos
...
Signed-off-by: Joel Longtine <joel@longtine.io>
2021-12-13 16:23:22 -07:00
Andrea Luzzardi
337ed0d1cc
remove hardcoded stdlib path
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-01 17:33:35 -08:00
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