Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean provider Name Issue #394

Open
M-Nasser-M opened this issue May 8, 2024 · 0 comments
Open

Clean provider Name Issue #394

M-Nasser-M opened this issue May 8, 2024 · 0 comments
Assignees

Comments

@M-Nasser-M
Copy link

M-Nasser-M commented May 8, 2024

so i tried adding aws native and that was the error i recevied
after looking at it it is the result of the "-" still being there in the aws-native

image

after looking at an old commit file because i noticed the bug wasn't there before check
here
it was after adding the provider lock commit there was a function in the go install file that edited provider name
named cleanprovidername

i think the removal of this function is the cause of the error
here is the code snippet of the function

 func cleanProviderName(name string) string {

result := regexp.MustCompile("\[^a-zA-Z0-9\]+").ReplaceAllString(name, "")
 result = strings.ReplaceAll(result, "pulumiverse", "")
 result = strings.ReplaceAll(result, "pulumi", "")
 result = strings.ReplaceAll(result, "sstprovider", "")
 return result

}

didn't have enough time to check if there was a contribution guide and do a pull request but hope this helps also when i fixed the config file manually it wouldn't let me deploy so i figured you might need to change something in provider-lock.json and after i changed the alias and remove the "-" it worked check the error below

image

@thdxr thdxr self-assigned this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants