Merge pull request #1217 from jygastaud/docs/dev-cue-package
docs: make dev-cue-package example naming consitant
This commit is contained in:
commit
dd4c360a7b
@ -51,7 +51,7 @@ Let's write the package logic. It is basically what we've seen in the 106-cloudr
|
|||||||
touch cue.mod/pkg/github.com/username/gcpcloudrun/source.cue
|
touch cue.mod/pkg/github.com/username/gcpcloudrun/source.cue
|
||||||
```
|
```
|
||||||
|
|
||||||
```cue file=./tests/dev-cue-package/source.cue title="cue.mod/pkg/github.com/tjovicic/gcpcloudrun/source.cue"
|
```cue file=./tests/dev-cue-package/source.cue title="cue.mod/pkg/github.com/username/gcpcloudrun/source.cue"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running the package
|
### Running the package
|
||||||
|
@ -6,7 +6,7 @@ cat > test/source.cue << EOF
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tjovicic/gcpcloudrun"
|
"github.com/username/gcpcloudrun"
|
||||||
)
|
)
|
||||||
|
|
||||||
run: gcpcloudrun.#Run
|
run: gcpcloudrun.#Run
|
||||||
|
@ -263,8 +263,8 @@ setup() {
|
|||||||
|
|
||||||
# # Writing package
|
# # Writing package
|
||||||
# # dagger init # The sandbox is already init
|
# # dagger init # The sandbox is already init
|
||||||
# mkdir -p "$DAGGER_SANDBOX"/cue.mod/pkg/github.com/tjovicic/gcpcloudrun
|
# mkdir -p "$DAGGER_SANDBOX"/cue.mod/pkg/github.com/username/gcpcloudrun
|
||||||
# cp "$DAGGER_PROJECT"/dev-cue-package/source.cue "$DAGGER_SANDBOX"/cue.mod/pkg/github.com/tjovicic/gcpcloudrun/source.cue
|
# cp "$DAGGER_PROJECT"/dev-cue-package/source.cue "$DAGGER_SANDBOX"/cue.mod/pkg/github.com/username/gcpcloudrun/source.cue
|
||||||
# cp "$DAGGER_PROJECT"/dev-cue-package/script.sh "$DAGGER_SANDBOX"/project/script.sh
|
# cp "$DAGGER_PROJECT"/dev-cue-package/script.sh "$DAGGER_SANDBOX"/project/script.sh
|
||||||
|
|
||||||
# # We remove the last line of the script, as bats cannot expand dagger
|
# # We remove the last line of the script, as bats cannot expand dagger
|
||||||
|
Reference in New Issue
Block a user