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

can not add repo url #562

Open
jesusys opened this issue Sep 10, 2024 · 3 comments
Open

can not add repo url #562

jesusys opened this issue Sep 10, 2024 · 3 comments

Comments

@jesusys
Copy link

jesusys commented Sep 10, 2024

Describe the bug
A clear and concise description of what the bug is.
when add a repo and it shows a failure with the message:
yaml: line 3: mapping values are not allowed in this context

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'template'
  2. Click on 'add templates reference'
  3. Scroll down to 'Repository URL'
  4. my repo is "https://llm-gitlab.xxxxxx.com/xxxx/xxxxx"
  5. if i change repo to "https://llm.xxxxxx.com/xxxx/xxxxx" or "https://gitlab.xxxxxx.com/xxxx/xxxxx" is ok

Expected behavior
A clear and concise description of what you expected to happen.
i think repo name can't exist "-"
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [all]
  • Browser [e.g. chrome,edge]
  • Version [0.7.1/0.10.0]
@petar-cvit
Copy link
Collaborator

Hey @jesusys, thanks for the issue.

I haven't tried fetching a template from a self-hosted GitLab. It's weird that it works on those hosts but not on llm-gitlab.

Judging by the message, I'd say that its the problem with Chart.yaml. Could you check if that file is correct.

If you think it might be easier, you can join our Discord, and we can try to debug it. Feel free to start a thread in the #questions

@jesusys
Copy link
Author

jesusys commented Sep 11, 2024

Hey @jesusys, thanks for the issue.

I haven't tried fetching a template from a self-hosted GitLab. It's weird that it works on those hosts but not on llm-gitlab.

Judging by the message, I'd say that its the problem with Chart.yaml. Could you check if that file is correct.

If you think it might be easier, you can join our Discord, and we can try to debug it. Feel free to start a thread in the #questions

nobody reply me in discord. i clone the demo to my gitlab. , if host url is xxx.abc.com ,i can add template , if hosts url is xxx-yyy.abc.com, i can't add template.
i test cyclops-ctrl/internal/template/git.go , func clone(repoURL, commit string, creds *auth.Credentials) (billy.Filesystem, error) api or interface,i can get gitlab's repo from host url xxx-yyy.abc.com.
@petar-cvit

@petar-cvit
Copy link
Collaborator

@jesusys, can we consider the issue resolved? If not, let us know what needs to be changed

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