-
Notifications
You must be signed in to change notification settings - Fork 68
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
Metacello loading error when credentials are provided #564
Comments
Could you please try to run your build locally? I'm not sure whether the problem is GitLab-specific or not. |
@fniephaus It seems the problem does occur on any platform (tried GitLab, GitHub and locally) when I set both respository and correct password/token (passwordEnvVar). However, I managed to make it working by just not setting the repository. When I do not set repository, it does not try to pull it (uses local files?), therefore does not need any password/token (and probably ignores it) and runs fine. |
Don't you have to set |
This is my first attempt at private repos as well, so I might have been doing something wrong. Actually, I am not sure why can we set the repository - maybe if the .smalltalk.ston is not in the built/tested repo, but somewhere separate? As far as I understood from glimpses in README and closed PRs here and in Metacello (especially Metacello/metacello#536 (comment) by @LinqLover), it should accept either username+password or token, and the token should be filled in the passwordEnvVar. Looking at Metacello project, it seems the issue is that when the password/token is needed and provided, SmalltalkCI tries to update Metacello (by loading its baseline). However, in case of Pharo, the baseline is made only for Pharo 7 and older. It cannot load on any newer Pharo version (I use Pharo 10). Thus my original Metacello loading error. |
Exactly. So how does modern Pharo load Metacello if not through the baseline? You could dispatch |
Hello, I am trying to make GitLab CI working for my private repository. I created .gitlab-ci.yml for testing on Pharo 10 and .smalltalk.ston with passwordEnvVar set, but I get following error loading Metacello:
Without the passwordEnvVar it starts by loading baseline of my project and everything works (for public repo).
With the passwordEnvVar set it starts by loading the Metacello and that results in the error. No matter if the repo is public or private.
This is the full log of different (but public) repo: https://gitlab.com/JanBliznicenko/openponk/-/jobs/2933194553
This is the .gitlab-ci.yml:
And this is the .smalltalk.ston:
The text was updated successfully, but these errors were encountered: