Gitlab pages for package index (Sysand add ...)

Good morning,

I have read through the documentation of setting up a Package Index using Gitlab pages, but unfortunately I have some trouble getting it to work. I have forked the sysand private index repository as provided in the documents and ran the pipeline to launch the gitlab pages. I have also set the environment variables (SYSAND_CRED_GITLAB to the gitlab pages link and SYSAND_CRED_GITLAB_BEARER_TOKEN to my personal access token. However when I try to do sysand add urn:kpar:test_package --index <url to my gitlab pages + /**) it gives me the error “failed to retrieve project(s): project with IRI ‘urn:kpar:test_package’ not found: no resolver was able to resolve the IRI”

Another problem I am facing is with “sysand publish” as it does not seem to recognize this command line within my command prompt: “error: unrecognized subcommand: ‘publish’”

Maybe I am doing something completely wrong, so I hope this is the right place to ask these questions.

Thank you in advance,

Sander

Hi Sander,

The /** part should only be set as part of SYSAND_CRED_GITLAB. Url passed to --index is of the form https://my-gitlab-domain.gitlab.io/.

Hi Sander,

The publish command is meant to be used with the upcoming version of the public Sysand index. It will not work with the GitLab-based private indices. For publishing packages there you will need to use the git workflow described in the documentation.

The reason why the subcommand is unrecognized is most probably because you are using an old version of Sysand client. You can check your version with sysand --version. The latest (which also added the publish subcommand) is 0.0.11.

Thank you both Andrius and Simonas for your quick responses.

I have made a mistake within my explanation in the problem. Sorry for that. What Andrius suggested was already the case for me. I only put “/**” at the end of my SYSAND_CRED_GITLAB_BEARER_TOKEN and not within my sysand add command. Unfortunately that did still gives me the same error.

As for the publishing, that explains why the publish command is indeed not working for me. Thank you. I do not see where in the documentation this git workflow part is explained though.

Kind regards,

Sander

To see what the problem is, could you post the logs (here or via email to sysand@sensmetry.com)? To get them, run the same command, but also pass -v flag.

Simonas was referring to the same docs about hosting the index: Sensmetry / public / sysand-private-index · GitLab