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

Lastversion fails for GitLab instances with non-standard ports #170

Open
fh-igd-mueller-roemer opened this issue Aug 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fh-igd-mueller-roemer
Copy link

Project with incorrect version

https://gitlab.vci.rwth-aachen.de:9000/OpenVolumeMesh/OpenVolumeMesh

To Reproduce

lastversion https://gitlab.vci.rwth-aachen.de:9000/OpenVolumeMesh/OpenVolumeMesh --verbose

Expected behavior

Expected output: 3.3.1 (the most recent tag)

Program output

lastversion.lastversion - INFO - Verbose 1 level output.
lastversion.repo_holders.base - INFO - Using cache directory: /home/jsroemer/.cache/lastversion.
lastversion.repo_holders.base - INFO - Created instance of GitLabRepoSession
Traceback (most recent call last):
  File "/home/jsroemer/ci-cd/check-versions/bin/lastversion", line 8, in <module>
    sys.exit(main())
  File "/home/jsroemer/ci-cd/check-versions/lib/python3.10/site-packages/lastversion/lastversion.py", line 851, in main
    res = latest(
  File "/home/jsroemer/ci-cd/check-versions/lib/python3.10/site-packages/lastversion/lastversion.py", line 223, in latest
    with HolderFactory.get_instance_for_repo(
  File "/home/jsroemer/ci-cd/check-versions/lib/python3.10/site-packages/lastversion/holder_factory.py", line 149, in get_instance_for_repo
    return project_hosting_class(repo, hostname)
  File "/home/jsroemer/ci-cd/check-versions/lib/python3.10/site-packages/lastversion/repo_holders/gitlab.py", line 30, in __init__
    super().__init__(repo, hostname)
  File "/home/jsroemer/ci-cd/check-versions/lib/python3.10/site-packages/lastversion/repo_holders/base.py", line 126, in __init__
    self.repo = self.get_base_repo_from_repo_arg(name)
  File "/home/jsroemer/ci-cd/check-versions/lib/python3.10/site-packages/lastversion/repo_holders/base.py", line 236, in get_base_repo_from_repo_arg
    raise ValueError(
ValueError: Repo arg None does not have enough URI components (True) for GitLabRepoSession
@fh-igd-mueller-roemer fh-igd-mueller-roemer added the bug Something isn't working label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@fh-igd-mueller-roemer and others