Skip to content

Commit

Permalink
tarball support (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
joellabes authored Oct 3, 2024
1 parent 339c957 commit 5c7f1b9
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 7 deletions.
43 changes: 37 additions & 6 deletions schemas/latest/dependencies-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"type": "array",
"items": {
"type": "object",
"required": ["name"],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
Expand All @@ -22,11 +24,18 @@
"anyOf": [
{
"type": "object",
"required": ["package", "version"],
"required": [
"package",
"version"
],
"properties": {
"version": {
"title": "Package version",
"type": ["string", "number", "array"],
"type": [
"string",
"number",
"array"
],
"description": "A semantic version string or range, such as [\">=1.0.0\", \"<2.0.0\"]"
},
"install-prerelease": {
Expand All @@ -38,15 +47,19 @@
"title": "Package identifier",
"type": "string",
"description": "Must be in format `org_name/package_name`. Refer to hub.getdbt.com for installation instructions",
"examples": ["dbt-labs/dbt_utils"],
"examples": [
"dbt-labs/dbt_utils"
],
"pattern": "^[\\w\\-\\.]+/[\\w\\-\\.]+$"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": ["git"],
"required": [
"git"
],
"properties": {
"git": {
"title": "Git URL",
Expand All @@ -65,6 +78,24 @@
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"tarball",
"name"
],
"properties": {
"tarball": {
"title": "Internally-hosted tarball URL",
"type": "string"
},
"name": {
"type": "string",
"description": "dbt will create a subdirectory in your `packages-install-path` with this name, and the tarball's source code will be installed here."
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
Expand All @@ -80,4 +111,4 @@
}
},
"additionalProperties": false
}
}
18 changes: 18 additions & 0 deletions schemas/latest/packages-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,24 @@
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"tarball",
"name"
],
"properties": {
"tarball": {
"title": "Internally-hosted tarball URL",
"type": "string"
},
"name": {
"type": "string",
"description": "dbt will create a subdirectory in your `packages-install-path` with this name, and the tarball's source code will be installed here."
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
Expand Down
5 changes: 4 additions & 1 deletion tests/latest/valid/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ packages:
- git: "https://github.com/dbt-labs/dbt-utils.git"
revision: 1.0.0

- local: /opt/dbt/redshift
- local: /opt/dbt/redshift

- tarball: abc123
name: some_package

0 comments on commit 5c7f1b9

Please sign in to comment.