pulumi / pulumi

Pulumi - Infrastructure as Code in any programming language 🚀
https://www.pulumi.com
Apache License 2.0
21.69k stars 1.11k forks source link

`pulumi new` not working for a template hosted in subgroups / projects on `gitlab.com` #17582

Open yodamad opened 1 week ago

yodamad commented 1 week ago

What happened?

I tried to create a new Pulumi project from a "private" template have made on gitlab.com (but which is available in a Public repository).

If I execute the command like explained in the help section, it doesn't work.

I cannot figure out why it doesn't work like explained in the documentation.

Example

First, with command pulumi new https://gitlab.com/yodamad-workshops/2024/devfest-toulouse/pulumi-template/, I got the error Authentication required, even if the repository is public

Second, with command containing authentication credentials, pulumi new https://<my_username>:<my_token>@gitlab.com/yodamad-workshops/2024/devfest-toulouse/pulumi-template/, I got the error repository not found

Output of pulumi about

CLI Version 3.135.1 Go Version go1.23.2 Go Compiler gc

Host OS darwin Version 14.7 Arch x86_64

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

justinvp commented 4 days ago

Hi @yodamad, thanks for the issue!

It looks like this is related to GitLab sub projects.

Repos hosted at the top-level like this work for me:

pulumi new https://gitlab.com/justinvp/test

As do specific templates within the git repo:

pulumi new https://gitlab.com/justinvp/test/typescript

You could try moving your template to a top-level repository as a workaround.

I'll keep this open to track adding support for GitLag sub groups/projects.