Skip to content

Commit

Permalink
feat: singlestore provider (and build error fix) (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-royal authored Jan 11, 2025
1 parent 1b91ddb commit 018f875
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { $ } from "bun";

const dry = process.argv.includes("--dry");

const $noThrow = new $.Shell().env(process.env).nothrow();

for (const file of new Bun.Glob("*").scanSync("metadata")) {
const provider = await import(`./metadata/${file}`);
const version = [provider.version, provider.suffix].filter(Boolean).join("-");
Expand All @@ -13,7 +15,7 @@ for (const file of new Bun.Glob("*").scanSync("metadata")) {
}
console.log("generating", name, "version", version);
const result =
await $`pulumi package add terraform-provider ${provider.terraform} ${provider.version}`;
await $noThrow`pulumi package add terraform-provider ${provider.terraform} ${provider.version}`;
const path = result.stdout
.toString()
.match(/at (\/[^\n]+)/)
Expand Down
3 changes: 3 additions & 0 deletions metadata/singlestore.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = "singlestore"
terraform = "registry.terraform.io/singlestore-labs/singlestoredb"
version = "0.1.0-alpha.10"

0 comments on commit 018f875

Please sign in to comment.