-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nishant Bansal <[email protected]>
- Loading branch information
1 parent
cd7fb71
commit a858b57
Showing
9 changed files
with
69 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
[package] | ||
name = "test_data" | ||
edition = "v0.9.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
k8s = "1.31" | ||
|
||
version = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +0,0 @@ | ||
[dependencies] | ||
[dependencies.k8s] | ||
name = "k8s" | ||
full_name = "k8s_1.31" | ||
version = "1.31" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# Get the directory of the script | ||
SCRIPT_DIR="$(dirname "$(realpath "$0")")" | ||
|
||
# Move to the root directory | ||
cd "$SCRIPT_DIR/../../" | ||
|
||
# Install kcl binary | ||
GOBIN=$(pwd)/bin go install kcl-lang.io/cli/cmd/kcl@latest | ||
|
||
# Check kpm version | ||
version=$(./bin/kcl --version) | ||
if ! echo "$version" ; then | ||
echo "Incorrect version: '$version'." | ||
exit 1 | ||
fi | ||
|
||
export KPM_REG="localhost:5001" | ||
export KPM_REPO="test" | ||
|
||
# Prepare the package on the registry | ||
current_dir=$(pwd) | ||
echo $current_dir | ||
|
||
# Log in to the local registry | ||
"$current_dir/bin/kcl" registry login -u test -p 1234 localhost:5001 | ||
|
||
# Pull the test_data package from the registry | ||
cd "$SCRIPT_DIR" | ||
"$current_dir/bin/kcl" mod pull oci://$KPM_REG/$KPM_REPO |