lbrlabs / pulumi-ovh

Pulumi provider for OVH
Apache License 2.0
10 stars 1 forks source link

Broken Go SDK in version v0.1.0 #34

Open 0xd3e opened 1 year ago

0xd3e commented 1 year ago

The Go SDK is currently broken and cannot be compiled. golangci-lint gives the following errors:

% golangci-lint run sdk/...
WARN [runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner.  
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused. 
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused. 
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused. 
WARN [runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner.  Replaced by revive. 
WARN [linters_context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649. 
sdk/go/ovh/cloudProject.go:76:9: undeclared name: `CloudProjectOrderArrayOutput` (typecheck)
    Orders CloudProjectOrderArrayOutput `pulumi:"orders"`
          ^
sdk/go/ovh/cloudProject.go:82:7: undeclared name: `CloudProjectPlanOutput` (typecheck)
    Plan CloudProjectPlanOutput `pulumi:"plan"`
        ^
sdk/go/ovh/cloudProject.go:84:14: undeclared name: `CloudProjectPlanOptionArrayOutput` (typecheck)
    PlanOptions CloudProjectPlanOptionArrayOutput `pulumi:"planOptions"`
               ^
sdk/go/ovh/cloudProject.go:137:11: undeclared name: `CloudProjectOrder` (typecheck)
    Orders []CloudProjectOrder `pulumi:"orders"`
            ^
sdk/go/ovh/cloudProject.go:143:8: undeclared name: `CloudProjectPlan` (typecheck)
    Plan *CloudProjectPlan `pulumi:"plan"`
         ^
sdk/go/ovh/cloudProject.go:145:16: undeclared name: `CloudProjectPlanOption` (typecheck)
    PlanOptions []CloudProjectPlanOption `pulumi:"planOptions"`
                 ^
sdk/go/ovh/cloudProject.go:160:9: undeclared name: `CloudProjectOrderArrayInput` (typecheck)
    Orders CloudProjectOrderArrayInput
          ^
sdk/go/ovh/cloudProject.go:166:7: undeclared name: `CloudProjectPlanPtrInput` (typecheck)
    Plan CloudProjectPlanPtrInput
        ^
sdk/go/ovh/cloudProject.go:168:14: undeclared name: `CloudProjectPlanOptionArrayInput` (typecheck)
    PlanOptions CloudProjectPlanOptionArrayInput
               ^
sdk/go/ovh/cloudProject.go:189:7: undeclared name: `CloudProjectPlan` (typecheck)
    Plan CloudProjectPlan `pulumi:"plan"`
        ^
sdk/go/ovh/cloudProject.go:191:16: undeclared name: `CloudProjectPlanOption` (typecheck)
    PlanOptions []CloudProjectPlanOption `pulumi:"planOptions"`
                 ^
sdk/go/ovh/cloudProject.go:203:7: undeclared name: `CloudProjectPlanInput` (typecheck)
    Plan CloudProjectPlanInput
        ^
sdk/go/ovh/cloudProject.go:205:14: undeclared name: `CloudProjectPlanOptionArrayInput` (typecheck)
    PlanOptions CloudProjectPlanOptionArrayInput
               ^
sdk/go/ovh/cloudProjectContainerRegistry.go:61:8: undeclared name: `CloudProjectContainerRegistryPlanArrayOutput` (typecheck)
    Plans CloudProjectContainerRegistryPlanArrayOutput `pulumi:"plans"`
         ^
sdk/go/ovh/cloudProjectContainerRegistry.go:124:10: undeclared name: `CloudProjectContainerRegistryPlan` (typecheck)
    Plans []CloudProjectContainerRegistryPlan `pulumi:"plans"`
           ^
sdk/go/ovh/cloudProjectContainerRegistry.go:152:8: undeclared name: `CloudProjectContainerRegistryPlanArrayInput` (typecheck)
    Plans CloudProjectContainerRegistryPlanArrayInput
         ^
sdk/go/ovh/cloudProjectDatabase.go:120:12: undeclared name: `CloudProjectDatabaseEndpointArrayOutput` (typecheck)
    Endpoints CloudProjectDatabaseEndpointArrayOutput `pulumi:"endpoints"`
             ^
sdk/go/ovh/cloudProjectDatabase.go:134:8: undeclared name: `CloudProjectDatabaseNodeArrayOutput` (typecheck)
    Nodes CloudProjectDatabaseNodeArrayOutput `pulumi:"nodes"`
         ^
sdk/go/ovh/cloudProjectDatabase.go:202:14: undeclared name: `CloudProjectDatabaseEndpoint` (typecheck)
    Endpoints []CloudProjectDatabaseEndpoint `pulumi:"endpoints"`
               ^
sdk/go/ovh/cloudProjectDatabase.go:216:10: undeclared name: `CloudProjectDatabaseNode` (typecheck)
    Nodes []CloudProjectDatabaseNode `pulumi:"nodes"`
           ^
sdk/go/ovh/cloudProjectDatabase.go:237:12: undeclared name: `CloudProjectDatabaseEndpointArrayInput` (typecheck)
    Endpoints CloudProjectDatabaseEndpointArrayInput
             ^
sdk/go/ovh/cloudProjectDatabase.go:251:8: undeclared name: `CloudProjectDatabaseNodeArrayInput` (typecheck)
    Nodes CloudProjectDatabaseNodeArrayInput
         ^
sdk/go/ovh/cloudProjectDatabase.go:280:10: undeclared name: `CloudProjectDatabaseNode` (typecheck)
    Nodes []CloudProjectDatabaseNode `pulumi:"nodes"`
           ^
sdk/go/ovh/cloudProjectDatabase.go:304:8: undeclared name: `CloudProjectDatabaseNodeArrayInput` (typecheck)
    Nodes CloudProjectDatabaseNodeArrayInput
         ^
sdk/go/ovh/cloudProjectKube.go:77:30: undeclared name: `CloudProjectKubePrivateNetworkConfigurationPtrOutput` (typecheck)
    PrivateNetworkConfiguration CloudProjectKubePrivateNetworkConfigurationPtrOutput `pulumi:"privateNetworkConfiguration"`
                               ^
sdk/go/ovh/cloudProjectKube.go:150:31: undeclared name: `CloudProjectKubePrivateNetworkConfiguration` (typecheck)
    PrivateNetworkConfiguration *CloudProjectKubePrivateNetworkConfiguration `pulumi:"privateNetworkConfiguration"`
                                ^
sdk/go/ovh/cloudProjectKube.go:188:30: undeclared name: `CloudProjectKubePrivateNetworkConfigurationPtrInput` (typecheck)
    PrivateNetworkConfiguration CloudProjectKubePrivateNetworkConfigurationPtrInput
                               ^
sdk/go/ovh/cloudProjectKube.go:220:31: undeclared name: `CloudProjectKubePrivateNetworkConfiguration` (typecheck)
    PrivateNetworkConfiguration *CloudProjectKubePrivateNetworkConfiguration `pulumi:"privateNetworkConfiguration"`
                                ^
sdk/go/ovh/cloudProjectKube.go:245:30: undeclared name: `CloudProjectKubePrivateNetworkConfigurationPtrInput` (typecheck)
    PrivateNetworkConfiguration CloudProjectKubePrivateNetworkConfigurationPtrInput
                               ^
sdk/go/ovh/cloudProjectKubeNodePool.go:117:11: undeclared name: `CloudProjectKubeNodePoolTemplatePtrOutput` (typecheck)
    Template CloudProjectKubeNodePoolTemplatePtrOutput `pulumi:"template"`
            ^
sdk/go/ovh/cloudProjectKubeNodePool.go:205:12: undeclared name: `CloudProjectKubeNodePoolTemplate` (typecheck)
    Template *CloudProjectKubeNodePoolTemplate `pulumi:"template"`
             ^
sdk/go/ovh/cloudProjectKubeNodePool.go:255:11: undeclared name: `CloudProjectKubeNodePoolTemplatePtrInput` (typecheck)
    Template CloudProjectKubeNodePoolTemplatePtrInput
            ^
sdk/go/ovh/cloudProjectKubeNodePool.go:295:12: undeclared name: `CloudProjectKubeNodePoolTemplate` (typecheck)
    Template *CloudProjectKubeNodePoolTemplate `pulumi:"template"`
             ^
sdk/go/ovh/cloudProjectKubeNodePool.go:328:11: undeclared name: `CloudProjectKubeNodePoolTemplatePtrInput` (typecheck)
    Template CloudProjectKubeNodePoolTemplatePtrInput
            ^
sdk/go/ovh/cloudProjectNetworkPrivate.go:57:20: undeclared name: `CloudProjectNetworkPrivateRegionsAttributeArrayOutput` (typecheck)
    RegionsAttributes CloudProjectNetworkPrivateRegionsAttributeArrayOutput `pulumi:"regionsAttributes"`
                     ^
sdk/go/ovh/cloudProjectNetworkPrivate.go:63:18: undeclared name: `CloudProjectNetworkPrivateRegionsStatusArrayOutput` (typecheck)
    RegionsStatuses CloudProjectNetworkPrivateRegionsStatusArrayOutput `pulumi:"regionsStatuses"`
                   ^
sdk/go/ovh/cloudProjectNetworkPrivate.go:118:22: undeclared name: `CloudProjectNetworkPrivateRegionsAttribute` (typecheck)
    RegionsAttributes []CloudProjectNetworkPrivateRegionsAttribute `pulumi:"regionsAttributes"`
                       ^
sdk/go/ovh/cloudProjectNetworkPrivate.go:124:20: undeclared name: `CloudProjectNetworkPrivateRegionsStatus` (typecheck)
    RegionsStatuses []CloudProjectNetworkPrivateRegionsStatus `pulumi:"regionsStatuses"`
                     ^
sdk/go/ovh/cloudProjectNetworkPrivate.go:147:20: undeclared name: `CloudProjectNetworkPrivateRegionsAttributeArrayInput` (typecheck)
    RegionsAttributes CloudProjectNetworkPrivateRegionsAttributeArrayInput
                     ^
sdk/go/ovh/cloudProjectNetworkPrivate.go:153:18: undeclared name: `CloudProjectNetworkPrivateRegionsStatusArrayInput` (typecheck)
    RegionsStatuses CloudProjectNetworkPrivateRegionsStatusArrayInput
                   ^
sdk/go/ovh/cloudProjectNetworkPrivateSubnet.go:68:10: undeclared name: `CloudProjectNetworkPrivateSubnetIpPoolArrayOutput` (typecheck)
    IpPools CloudProjectNetworkPrivateSubnetIpPoolArrayOutput `pulumi:"ipPools"`
           ^
sdk/go/ovh/cloudProjectNetworkPrivateSubnet.go:154:12: undeclared name: `CloudProjectNetworkPrivateSubnetIpPool` (typecheck)
    IpPools []CloudProjectNetworkPrivateSubnetIpPool `pulumi:"ipPools"`
             ^
sdk/go/ovh/cloudProjectNetworkPrivateSubnet.go:193:10: undeclared name: `CloudProjectNetworkPrivateSubnetIpPoolArrayInput` (typecheck)
    IpPools CloudProjectNetworkPrivateSubnetIpPoolArrayInput
           ^
sdk/go/ovh/cloudProjectUser.go:71:8: undeclared name: `CloudProjectUserRoleArrayOutput` (typecheck)
    Roles CloudProjectUserRoleArrayOutput `pulumi:"roles"`
         ^
sdk/go/ovh/cloudProjectUser.go:142:10: undeclared name: `CloudProjectUserRole` (typecheck)
    Roles []CloudProjectUserRole `pulumi:"roles"`
           ^
sdk/go/ovh/cloudProjectUser.go:181:8: undeclared name: `CloudProjectUserRoleArrayInput` (typecheck)
    Roles CloudProjectUserRoleArrayInput
         ^
sdk/go/ovh/dbaasLogsInput.go:86:16: undeclared name: `DbaasLogsInputConfigurationOutput` (typecheck)
    Configuration DbaasLogsInputConfigurationOutput `pulumi:"configuration"`
                 ^
sdk/go/ovh/dbaasLogsInput.go:170:17: undeclared name: `DbaasLogsInputConfiguration` (typecheck)
    Configuration *DbaasLogsInputConfiguration `pulumi:"configuration"`
                  ^
sdk/go/ovh/dbaasLogsInput.go:207:16: undeclared name: `DbaasLogsInputConfigurationPtrInput` (typecheck)
    Configuration DbaasLogsInputConfigurationPtrInput
                 ^
sdk/go/ovh/dbaasLogsInput.go:248:16: undeclared name: `DbaasLogsInputConfiguration` (typecheck)
    Configuration DbaasLogsInputConfiguration `pulumi:"configuration"`
scraly commented 1 year ago

Seems the issue is fixed?

$ golangci-lint run sdk/...
WARN [runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive. 
WARN [runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner.  
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. 
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused. 
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.