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

Nuxt Layers not handling gitlab subgroups correctly #25145

Closed
sl0wik opened this issue Jan 10, 2024 · 2 comments
Closed

Nuxt Layers not handling gitlab subgroups correctly #25145

sl0wik opened this issue Jan 10, 2024 · 2 comments

Comments

@sl0wik
Copy link

sl0wik commented Jan 10, 2024

Environment

Docker image node:18

  • Operating System: Linux
  • Node Version: v18.19.0
  • Nuxt Version: ^3.1.0
  • CLI Version: 3.10.0
  • Nitro Version: -
  • Package Manager: yarn@1.22.19
  • Builder: -

Reproduction

Add any Gitlab repository based in subgroup to extends configuration, for example:

    extends: [
        'gitlab:group-name/foo/bar'
    ],

Running yarn install will result in [error] Failed to download https://gitlab.com/group-name/foo/-/archive/main.tar.gz: 403 Forbidden. It seems to take only the first parameter and ignore bar.

Describe the bug

Gitlab uses a different structure than Github, so this example https://nuxt.com/docs/guide/going-further/layers#git-repository seems to be incorrect.

Instead of username/repoName Gitlab uses {groupName}/{repoName|subgroupName}/... and it would cause 403 error on https://gitlab.com/{groupName}/{subgroupName}/-/archive/main.tar.gz.

I can't figure right way to extend GitLab repository.

Additional context

No response

Logs

No response

@pi0
Copy link
Member

pi0 commented Jan 10, 2024

Upstream tracker: unjs/giget#107

I didn't have chance to investigate it yet but PR is more than welcome to fix 🙏🏼

@danielroe danielroe removed the 3.x label Jun 30, 2024
@danielroe
Copy link
Member

Let's track in linked upstream issue. 🙏

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants