rename go module and flush out Earthfile build

This commit is contained in:
2025-04-25 13:25:27 -04:00
parent 10c79110a0
commit 9fe19d2cc2
12 changed files with 102 additions and 249 deletions

View File

@@ -83,13 +83,6 @@
},
"incus_network_lb": {
"current": "incus:index/networkLoadBalancer:NetworkLoadBalancer",
"past": [
{
"name": "incus:index/networkLb:NetworkLb",
"inCodegen": true,
"majorVersion": 1
}
],
"majorVersion": 1,
"fields": {
"backend": {
@@ -179,13 +172,5 @@
}
}
},
"auto-settings": {
"resources": {
"incus_network_lb": {
"aliases": [
"incus:index/networkLb:NetworkLb"
]
}
}
}
"auto-settings": {}
}

View File

@@ -20,7 +20,7 @@ import (
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/pf/tfbridge"
incus "github.com/brandonkal/pulumi-incus/provider"
incus "git.kalinow.ski/nimbus/pulumi-incus/provider"
)
//go:embed schema.json

File diff suppressed because one or more lines are too long

View File

@@ -17,8 +17,8 @@ package main
import (
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen"
incus "github.com/brandonkal/pulumi-incus/provider"
"github.com/brandonkal/pulumi-incus/provider/pkg/version"
incus "git.kalinow.ski/nimbus/pulumi-incus/provider"
"git.kalinow.ski/nimbus/pulumi-incus/provider/pkg/version"
)
func main() {

View File

@@ -1,4 +1,4 @@
module github.com/brandonkal/pulumi-incus/provider
module git.kalinow.ski/nimbus/pulumi-incus/provider
go 1.23.7

View File

@@ -31,7 +31,7 @@ import (
"github.com/pulumi/pulumi/pkg/v3/codegen/schema"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
"github.com/brandonkal/pulumi-incus/provider/pkg/version"
"git.kalinow.ski/nimbus/pulumi-incus/provider/pkg/version"
)
// all of the token components used below.
@@ -110,7 +110,7 @@ func Provider() tfbridge.ProviderInfo {
// - "github.com/hashicorp/terraform-plugin-framework/provider".Provider (for plugin-framework)
//
//nolint:lll
P: pfbridge.ShimProvider(incus.Provider()()),
P: pfbridge.ShimProvider(incus.Provider(version.Version)()),
Name: "incus",
Version: version.Version,
@@ -135,7 +135,6 @@ func Provider() tfbridge.ProviderInfo {
// For all available categories, see `Keywords` in
// https://www.pulumi.com/docs/guides/pulumi-packages/schema/#package.
Keywords: []string{"incus", "category/cloud", "containers", "nimbus"},
License: "Apache-2.0",
Homepage: "https://linuxcontainers.org",
Repository: "https://git.kalinow.ski/nimbus/pulumi-incus",
// The GitHub Org for the provider - defaults to `terraform-providers`. Note that this should
@@ -178,7 +177,7 @@ func Provider() tfbridge.ProviderInfo {
Golang: &tfbridge.GolangInfo{
// Set where the SDK is going to be published to.
ImportBasePath: path.Join(
"github.com/brandonkal/pulumi-incus/sdk/",
"git.kalinow.ski/nimbus/pulumi-incus/sdk/",
tfbridge.GetModuleMajorVersion(version.Version),
"go",
mainPkg,

View File

@@ -6,6 +6,6 @@ import (
)
// Provider returns a Terraform Plugin Framework provider
func Provider() func() tfprovider.Provider {
return provider.NewIncusProvider("dev")
func Provider(version string) func() tfprovider.Provider {
return provider.NewIncusProvider(version)
}