rename dagger.mod.cue to dagger.mod and remove the need for module name

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
This commit is contained in:
Tihomir Jovicic
2021-08-24 10:16:29 +02:00
parent 8aaaacc9da
commit a6a6037d01
3 changed files with 7 additions and 39 deletions

View File

@@ -52,13 +52,13 @@ import (
run: gcpcloudrun.#Run
```
To install it just run
To install it just run
```shell
dagger mod get github.com/tjovicic/dagger-modules/gcpcloudrun@v0.1
```
It should pull the `v0.1` version from Github, leave a copy in `cue.mod/pkg` and reflect the change in
It should pull the `v0.1` version from Github, leave a copy in `cue.mod/pkg` and reflect the change in
`cue.mod/dagger.mod.cue` file:
```shell
@@ -71,9 +71,7 @@ cue.mod/pkg/github.com/
└── source.cue
```
```cue title="./cue.mod/dagger.mod.cue"
module: main
```cue title="./cue.mod/dagger.mod"
github.com/tjovicic/dagger-modules/gcpcloudrun v0.1
```
@@ -115,8 +113,6 @@ You should see similar output:
And `cue.mod/dagger.mod.cue` should reflect the new version:
```cue title="./cue.mod/dagger.mod.cue"
module: main
```cue title="./cue.mod/dagger.mod"
github.com/tjovicic/dagger-modules/gcpcloudrun v0.2
```