Skip to content

Commit

Permalink
curl: do not hardcode version requirement
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Alba <sam.alba@gmail.com>
  • Loading branch information
samalba committed May 27, 2021
1 parent dd17c48 commit f6aea7e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions stdlib/aws/aws.cue
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import (

// Re-usable aws-cli component
#CLI: {
package: [string]: string
package: [string]: string | bool

#up: [
op.#Load & {
from: alpine.#Image & {
"package": package
"package": bash: "=~5.1"
"package": jq: "=~1.6"
"package": curl: "=~7.77"
"package": curl: true
"package": "aws-cli": "=~1.18"
}
},
Expand All @@ -42,7 +42,7 @@ import (
code: string

// Extra pkgs to install
package: [string]: string
package: [string]: string | bool

// Files to mount
files: [string]: string
Expand Down
4 changes: 2 additions & 2 deletions stdlib/gcp/gcloud.cue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
#GCloud: {
config: #Config
version: string | *"288.0.0"
package: [string]: string
package: [string]: string | bool

#up: [
op.#Load & {
Expand All @@ -18,7 +18,7 @@ import (
"package": bash: "=~5.1"
"package": python3: "=~3.8"
"package": jq: "=~1.6"
"package": curl: "=~7.77"
"package": curl: true
}
},

Expand Down
2 changes: 1 addition & 1 deletion stdlib/kubernetes/kubernetes.cue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
from: alpine.#Image & {
package: bash: "=~5.1"
package: jq: "=~1.6"
package: curl: "=~7.77"
package: curl: true
}
},
op.#WriteFile & {
Expand Down
2 changes: 1 addition & 1 deletion stdlib/kubernetes/kustomize/kustomization.cue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
from: alpine.#Image & {
package: bash: "=~5.1"
package: jq: "=~1.6"
package: curl: "=~7.77"
package: curl: true
}
},

Expand Down
2 changes: 1 addition & 1 deletion stdlib/netlify/netlify.cue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import (
package: {
bash: "=~5.1"
jq: "=~1.6"
curl: "=~7.77"
curl: true
yarn: "=~1.22"
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/stdlib/alpine/alpine.cue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TestImageVersion: {
TestPackageInstall: {
image: alpine.#Image & {
package: jq: true
package: curl: "=~7.77"
package: curl: true
version: "3.13"
}

Expand All @@ -38,7 +38,7 @@ TestPackageInstall: {
args: ["jq", "--version"]
},
op.#Exec & {
args: ["sh", "-ec", "curl --version | grep -q 7.76"]
args: ["sh", "-ec", "curl --version"]
},
]
}
2 changes: 1 addition & 1 deletion tests/stdlib/netlify/netlify.cue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TestNetlify: {
op.#Load & {
from: alpine.#Image & {
package: bash: "=~5.1"
package: curl: "=~7.77"
package: curl: true
}
},
op.#Exec & {
Expand Down

0 comments on commit f6aea7e

Please sign in to comment.