Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

New version 8.x.x ignores GL_TOKEN #659

Closed
Labels
bugSomething isn't working properly
@Sieboldianus

Description

@Sieboldianus

The problem

I had a working pyproject.toml for automatic versioning in CI:

[tool.semantic_release]version_variable = ".version:__version__"upload_to_pypi = "false"build_command = "false"branch = "main"version_source = "tag"commit_version_number = "true"upload_to_repository = "false"hvcs = "gitlab"hvcs_domain = "gitlab.hrz.tu-chemnitz.de"hvcs_api_domain = "gitlab.hrz.tu-chemnitz.de/api/v4"env = "GL_TOKEN"

(I addedenv = "GL_TOKEN" per the new docs)

This does not work anymore. I get the following result in CI:

if [ -z ${GL_TOKEN+x} ]; then echo "GL_TOKEN is unset"; else echo "GL_TOKEN is set"; fiGL_TOKEN is set$ semantic-release version[12:06:14] WARNING  [semantic_release.cli.config] WARNING          config.py:331                    config.from_raw_config: the token for the                                       remote VCS is configured as stored in the                                       GH_TOKEN environment variable, but it is empty

Expected behavior

Semantic-release should pickup Gitlab, not Github as HVCS.

Environment

I tested this locally, and get the same reuslts:

semantic-release --noop -v version
Output
semantic-release --noop -v version🛡 You are running in no-operation mode, because the '--noop' flag was supplied[14:08:39] INFO     [semantic_release.cli.util] INFO util.load_raw_config_file: Loading configuration from pyproject.toml                                                                                  util.py:84           INFO     [semantic_release.cli.config] INFO config.select_branch_options: Using group 'main' options, as '(main|master)' matches 'main'                                                      config.py:228           INFO     [semantic_release.version.algorithm] INFO algorithm.tags_and_versions: found 16 previous tags                                                                                     algorithm.py:56           INFO     [semantic_release.version.algorithm] INFO algorithm.next_version: Found 16 full releases (excluding prereleases)                                                                 algorithm.py:246           INFO     [semantic_release.version.algorithm] INFO algorithm.next_version: The last full release was 0.9.4, tagged as 'v0.9.4'                                                            algorithm.py:268           INFO     [semantic_release.version.algorithm] INFO algorithm.bfs: found latest version in branch history: '0.9.4' (5d8e7cd)                                                                algorithm.py:92           INFO     [semantic_release.version.algorithm] INFO algorithm._bfs_for_latest_version_in_history: the latest version in this branch's history is 0.9.4                                     algorithm.py:111           INFO     [semantic_release.version.algorithm] INFO algorithm.next_version: The last full version in this branch's history was 0.9.4                                                       algorithm.py:292           INFO     [semantic_release.version.algorithm] INFO algorithm.next_version: The type of the next release release is: minor                                                                 algorithm.py:3690.10.0           INFO     [semantic_release.version.algorithm] INFO algorithm.tags_and_versions: found 16 previous tags                                                                                     algorithm.py:56The next version is: 0.10.0! 🚀🛡 semantic-release 'noop' mode is enabled! would have updated versions in the following paths:🛡 semantic-release 'noop' mode is enabled! would have run the build_command false🛡 semantic-release 'noop' mode is enabled!    would have run:        git add        git commit -m "0.10.0            Automatically generated by python-semantic-release"           INFO     [semantic_release.version.algorithm] INFO algorithm.tags_and_versions: found 16 previous tags                                                                                     algorithm.py:56[14:08:40] INFO     [semantic_release.cli.commands.version] INFO version.version: Path 'templates' not found, using default changelog template                                                         version.py:386🛡 semantic-release 'noop' mode is enabled! would have written your changelog to CHANGELOG.md🛡 semantic-release 'noop' mode is enabled!    would have run:        git add CHANGELOG.md           INFO     [semantic_release.cli.commands.version] INFO version.version: No local changes to add to any commit, skipping                                                                      version.py:447🛡 semantic-release 'noop' mode is enabled!    would have run:        git tag -a v0.10.0 -m "v0.10.0"🛡 semantic-release 'noop' mode is enabled!    would have run:        git push https://****@github.com/ad/test.git main        git push --tags https://****@github.com/ad/test.git main🛡 semantic-release 'noop' mode is enabled! would have created a release for the tag 'v0.10.0'🛡 semantic-release 'noop' mode is enabled! would have uploaded the following assets: []           INFO     [semantic_release.cli.github_actions_output] INFO github_actions_output.write_if_possible: not writing GitHub Actions output, as no file specified                    github_actions_output.py:70
python --version> Python 3.8.12pip --version> pip 21.3.1semantic-release --version> semantic-release, version 8.0.3
pip freeze
bleach==4.1.0build==0.10.0certifi==2021.10.8cffi==1.15.0charset-normalizer==2.0.10click==8.0.3click-log==0.3.2colorama==0.4.4cryptography==36.0.1docutils==0.18.1dotty-dict==1.3.0gitdb==4.0.9GitPython==3.1.26idna==3.3importlib-metadata==4.10.1importlib-resources==5.7.0invoke==1.6.0jeepney==0.7.1Jinja2==3.1.2keyring==23.5.0markdown-it-py==3.0.0MarkupSafe==2.1.3mdurl==0.1.2packaging==21.3pkginfo==1.8.2pycparser==2.21pydantic==1.10.12Pygments==2.15.1pyparsing==3.0.6pyproject_hooks==1.0.0python-gitlab==2.10.1python-semantic-release==8.0.3readme-renderer==32.0requests==2.27.1requests-toolbelt==0.9.1rfc3986==2.0.0rich==13.4.2SecretStorage==3.3.1semver==2.13.0setuptools-scm==6.4.1shellingham==1.5.0.post1six==1.16.0smmap==5.0.0tomli==2.0.0tomlkit==0.10.2tqdm==4.62.3twine==3.7.1typing_extensions==4.7.1urllib3==1.26.8webencodings==0.5.1zipp==3.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp