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
config remote name is not respected #808
Comments
The reason that the code asks the hvcs, is because previously during the configuration load step the hvcs was configured with the url from origin. Essentially they are the same thing. I would be curious if your token actually has permissions to write the repository. I assume you are using a GitHub on premise or SaaS where you have a custom domain? Are you running it locally or through the CI? If it is the CI make sure the github token value was granted the proper permissions which are |
Thanks for your reply, I should've justified that failure: I let it intentionally fail on auth, since I didn't want all the debugging tags pushed to the origin repo, while understanding the issue. |
@matthiasgleichauf, Well the type of the VCS is actually required for python-semantic-release currently. We make it optional for the user but assume GitHub when not provided. The client code sets up the domains if not provided which is how you are getting I have a solution in work to solve #734 (no VCS), which I think will be your desired use but its not ready yet. If I understand your desired configuration, your best bet is to run the push manually as a separate step and let semantic do the upfront work. semantic-release version --no-push --no-changelog --no-vcs-release
git push origin master --tags I'll revisit this when I finish #734, and see if there is some issue that the current code is not considering as the current implementation does seem a bit odd to have this side-effect. |
The problem
The documentation says I can configure the push target via
https://python-semantic-release.readthedocs.io/en/latest/configuration.html#tool-semantic-release-remote
yet the code does always asks the hvcs_client for its URL, ignoring the setting, see version.py#L530-L532
Expected behavior
I would expect the version command to respect setting the name of the remote and pushing there instead of constructing the URL directly from the hvcs client.
Environment
Please state which OS you are using and provide the output of the following commands:
Please also indicate which Python build tool(s) you are using (e.g.
pip
,build
,poetry
, etc.), including the version number too.pip
Configuration
Please add your
semantic-release
configuration, and if applicable also provideyour
build-system
configuration frompyproject.toml
.build command is:
pip wheel . -w dist --no-deps --prefer-binary
pyproject.toml:
Logs
Attached in semantic.log created by running
Additional context
This is run in a docker container started like this:
docker run -t -i -u root --entrypoint=bash -w [REDACTED_PATH] -v [REDACTED_PATH]:[REDACTED_PATH]:rw,z python:3.11
The text was updated successfully, but these errors were encountered: