Wondering if some Go people can help to figure out...
# golang
l
Wondering if some Go people can help to figure out how to use local go versioned modules. We tried adding local version for one module using this guide pulumi.com/registry/packages/azure-native/version-guide#… However, it doesn't account for "shared" parts like
utilities
:
Copy code
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***

package containerregistry

import (
	"context"
	"reflect"

	"errors"
>>>	"<http://github.com/pulumi/pulumi-azure-native-sdk/v3/utilities|github.com/pulumi/pulumi-azure-native-sdk/v3/utilities>" <<<
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi" 
)
The new version that we are trying to use import its own utilities which needs to be used instead of utilities from the published module due to difference in interface. I tried using replace directive but that didn't work:
Copy code
replace github.com/pulumi/pulumi-azure-native-sdk/v3/utilities => ./sdks/azure-native_containerregistry_v20260101preview/v3/utilities
Our solution so far is hand edit generated files to point them to the right utilities. That feels really prone to break on the next generation.
Detailed issue added i believe this is a bug in pulumi codegen github.com/pulumi/pulumi-azure-native/issues/4826
a
Hi @little-chef-2593, you definitely shouldn’t need to edit the generated files. I’ll take a look and respond on the issue.