Housekeeping (#8)

* Rename the provider to dockerbuild.
* Add Makefile targets required by CI.
* Add per-language test targets compatible with CI.
* Fix broken example yaml.
* Add gitignore exclusions to fix SDK generation in CI.
* Fix lint errors.
* Vendor pulumi CLI via `tools.go` instead of `.pulumi`.
* Consolidate `go.mod`s into one file, with a minimal `go.mod` for the
Go SDK.
* Add codecov.
This commit is contained in:
Bryce Lampe
2024-03-20 11:09:37 -07:00
committed by GitHub
parent 3eb77f66f2
commit 2b348f84e4
81 changed files with 1418 additions and 3251 deletions

View File

@@ -7,9 +7,9 @@ using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.DockerNative
namespace Pulumi.Dockerbuild
{
[DockerNativeResourceType("pulumi:providers:docker-native")]
[DockerbuildResourceType("pulumi:providers:dockerbuild")]
public partial class Provider : global::Pulumi.ProviderResource
{
/// <summary>
@@ -20,7 +20,7 @@ namespace Pulumi.DockerNative
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null)
: base("docker-native", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
: base("dockerbuild", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
{
}
@@ -29,7 +29,7 @@ namespace Pulumi.DockerNative
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github.com/pulumi/pulumi-docker-native",
PluginDownloadURL = "github.com/pulumi/pulumi-dockerbuild",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.

View File

@@ -7,7 +7,7 @@
<Description>Description</Description>
<PackageLicenseExpression></PackageLicenseExpression>
<PackageProjectUrl>pulumi.com</PackageProjectUrl>
<RepositoryUrl>https://github.com/pulumi/pulumi-docker-native</RepositoryUrl>
<RepositoryUrl>https://github.com/pulumi/pulumi-dockerbuild</RepositoryUrl>
<PackageIcon>logo.png</PackageIcon>
<TargetFramework>net6.0</TargetFramework>
@@ -44,7 +44,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Pulumi" Version="[3.54.1.0,4)" />
<PackageReference Include="Pulumi" Version="3.*" />
</ItemGroup>
<ItemGroup>

10
sdk/dotnet/Random.cs generated
View File

@@ -7,9 +7,9 @@ using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.DockerNative
namespace Pulumi.Dockerbuild
{
[DockerNativeResourceType("docker-native:index:Random")]
[DockerbuildResourceType("dockerbuild:index:Random")]
public partial class Random : global::Pulumi.CustomResource
{
[Output("length")]
@@ -27,12 +27,12 @@ namespace Pulumi.DockerNative
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public Random(string name, RandomArgs args, CustomResourceOptions? options = null)
: base("docker-native:index:Random", name, args ?? new RandomArgs(), MakeResourceOptions(options, ""))
: base("dockerbuild:index:Random", name, args ?? new RandomArgs(), MakeResourceOptions(options, ""))
{
}
private Random(string name, Input<string> id, CustomResourceOptions? options = null)
: base("docker-native:index:Random", name, null, MakeResourceOptions(options, id))
: base("dockerbuild:index:Random", name, null, MakeResourceOptions(options, id))
{
}
@@ -41,7 +41,7 @@ namespace Pulumi.DockerNative
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github.com/pulumi/pulumi-docker-native",
PluginDownloadURL = "github.com/pulumi/pulumi-dockerbuild",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.

View File

@@ -1,7 +1,7 @@
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
namespace Pulumi.DockerNative
namespace Pulumi.Dockerbuild
{
static class Utilities
{
@@ -53,7 +53,7 @@ namespace Pulumi.DockerNative
{
var dst = src ?? new global::Pulumi.InvokeOptions{};
dst.Version = src?.Version ?? Version;
dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github.com/pulumi/pulumi-docker-native";
dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github.com/pulumi/pulumi-dockerbuild";
return dst;
}
@@ -63,7 +63,7 @@ namespace Pulumi.DockerNative
static Utilities()
{
var assembly = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Utilities)).Assembly;
using var stream = assembly.GetManifestResourceStream("Pulumi.DockerNative.version.txt");
using var stream = assembly.GetManifestResourceStream("Pulumi.Dockerbuild.version.txt");
using var reader = new global::System.IO.StreamReader(stream ?? throw new global::System.NotSupportedException("Missing embedded version.txt file"));
version = reader.ReadToEnd().Trim();
var parts = version.Split("\n");
@@ -75,9 +75,9 @@ namespace Pulumi.DockerNative
}
}
internal sealed class DockerNativeResourceTypeAttribute : global::Pulumi.ResourceTypeAttribute
internal sealed class DockerbuildResourceTypeAttribute : global::Pulumi.ResourceTypeAttribute
{
public DockerNativeResourceTypeAttribute(string type) : base(type, Utilities.Version)
public DockerbuildResourceTypeAttribute(string type) : base(type, Utilities.Version)
{
}
}

View File

@@ -1,5 +1,5 @@
{
"resource": true,
"name": "docker-native",
"server": "github.com/pulumi/pulumi-docker-native"
"name": "dockerbuild",
"server": "github.com/pulumi/pulumi-dockerbuild"
}

View File

@@ -1 +0,0 @@
0.0.1-alpha.1709848295+3427e611.dirty