René's URL Explorer Experiment


Title: GitHub · Where software is built

Open Graph Title: python-semantic-release/python-semantic-release

X Title: python-semantic-release/python-semantic-release

Description: Automating Releases via SemVer and Commit Message Conventions - python-semantic-release/python-semantic-release

Open Graph Description: Automating Releases via SemVer and Commit Message Conventions - python-semantic-release/python-semantic-release

X Description: Automating Releases via SemVer and Commit Message Conventions - python-semantic-release/python-semantic-release

Opengraph URL: https://github.com/python-semantic-release/python-semantic-release

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Getting \"Template directory must be inside of the repository directory.\" error when not specifying template_dir option.","articleBody":"## Bug Report\r\n\r\n### Description\r\nRunning \"semantic-release --noop version --print\" to try and verify my configuration and see the next version number.\r\n\r\nI have no `template_dir` in my pyproject.toml, so using the default template.\r\n\r\n\r\n\r\n### Expected behavior\r\nWould not expect this error message since I'm using the default templates and don't have a template directory specified.\r\n\r\n\r\n\r\n### Actual behavior\r\nThe following error:\r\n\r\n```\r\n🛡  You are running in no-operation mode, because the '--noop' flag was supplied\r\n[18:51:22] WARNING  [semantic_release.cli.config] WARNING config.from_raw_config: Token value is missing!                                                              config.py:558\r\nTemplate directory must be inside of the repository directory.\r\n```\r\n\r\n\r\n### Environment\r\n\r\nWindows 11\r\nPython 3.9\r\nSemantic-Release 9.8.6\r\nPoetry 1.8.2\r\n\r\n\r\n### Configuration\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eSemantic Release Configuration\u003c/summary\u003e\r\n\r\n```toml\r\n...\r\n[tool.semantic_release]\r\nversion_variables = [\r\n  \"src/project/__init__.py:__version__\"\r\n]\r\nversion_toml = [\"pyproject.toml:tool.poetry.version\"]\r\nchangelog_file = \"CHANGELOG.md\"\r\nbuild_command = \"poetry build\"\r\ndist_path = \"dist/\"\r\nupload_to_vcs_release = false\r\nupload_to_pypi = false\r\nremove_dist = false\r\npatch_without_tag = true\r\nmajor_on_zero = true\r\n\r\n[tool.semantic_release.commit_parser_options]\r\nallowed_tags = [\"build\", \"chore\", \"ci\", \"docs\", \"feat\", \"fix\", \"perf\", \"style\", \"refactor\", \"test\"]\r\nminor_tags = [\"feat\"]\r\npatch_tags = [\"fix\", \"perf\"]\r\n\r\n[tool.semantic_release.branches.main]\r\nmatch = \"develop\"\r\nprerelease = false\r\n\r\n[tool.semantic_release.branches.others]\r\nmatch = \"^(?!develop$)\"\r\nprerelease = true\r\nprerelease_token = \"alpha\"\r\n```\r\n\r\n\u003c/details\u003e\r\n\u003cbr\u003e\r\n\r\n\r\n### Execution Log\r\n\r\n\u003c!--\r\nPlease rerun the command using with the `-vv` option and include the log here\r\n\r\nIf you are using GitHub Actions, include the log output from the job with the -vv flag\r\nas a root_options argument.\r\n--\u003e\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003e\u003ccode\u003esemantic-release -vv \u003ci\u003ecommand\u003c/i\u003e\u003c/code\u003e\u003c/summary\u003e\r\n\r\n```log\r\n[18:52:55] DEBUG    [semantic_release.cli.commands.main] DEBUG main.main: logging level set to: DEBUG                                                                    main.py:123\r\n🛡  You are running in no-operation mode, because the '--noop' flag was supplied\r\n           DEBUG    [semantic_release.cli.commands.main] DEBUG main.main: global cli options: GlobalCommandLineOptions(noop=True, verbosity=2,                           main.py:135\r\n                    config_file='pyproject.toml', strict=False)\r\n           INFO     [semantic_release.cli.util] INFO util.load_raw_config_file: Loading configuration from pyproject.toml                                                 util.py:79\r\n           DEBUG    [semantic_release.cli.util] DEBUG util.load_raw_config_file: Trying to parse configuration pyproject.toml in TOML format                              util.py:82\r\n           DEBUG    [semantic_release.cli.config] DEBUG config.select_branch_options: Rejecting group 'main' as 'develop' doesn't match 'fix/deploy2'                  config.py:421\r\n           INFO     [semantic_release.cli.config] INFO config.select_branch_options: Using group 'others' options, as '^(?!develop$)' matches 'fix/deploy2'            config.py:414\r\n           DEBUG    [semantic_release.cli.config] DEBUG config.from_raw_config: hvcs token is not set                                                                  config.py:555\r\n           WARNING  [semantic_release.cli.config] WARNING config.from_raw_config: Token value is missing!                                                              config.py:558\r\nTemplate directory must be inside of the repository directory.\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n### Additional context\r\n\r\nThe following [check in cli/config.py:582](https://github.com/python-semantic-release/python-semantic-release/blob/4e59b501374fe6c6f822cc0e9eb41da3e896f642/semantic_release/cli/config.py#L582) triggers the error:\r\n\r\n```python\r\nif raw.repo_dir not in template_dir.parents:\r\n```\r\n\r\nI added some debug outputs and observe that raw.repo_dir is giving a full path, e.g. \"C:\\Code\\project\" whereas the default template_dir is \"templates\"- not an absolute path.  template_dir.parents then comes out to `['.']`.  I believe the lack of resolving the path to an absolute path might be to blame here.  repo_dir gets resolved to an absolute path by the field_validator in RawConfig, [here](https://github.com/python-semantic-release/python-semantic-release/blob/4e59b501374fe6c6f822cc0e9eb41da3e896f642/semantic_release/cli/config.py#L255).","author":{"url":"https://github.com/Wiley-Black","@type":"Person","name":"Wiley-Black"},"datePublished":"2024-07-25T22:56:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/994/python-semantic-release/issues/994"}

route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:26a472fc-c6de-85ab-0896-60efdbc3f934
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id94C8:DDB35:1127690:15B7294:69916EDC
html-safe-nonce63a649e1a90126fd62f16de557168bbbf45adfdcc7cdf38de3f73c7f36b7f399
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEM4OkREQjM1OjExMjc2OTA6MTVCNzI5NDo2OTkxNkVEQyIsInZpc2l0b3JfaWQiOiI3NTYxNDc2NDk5NzU4NDc3MDIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca7197add6e2ce2e5af7c12f903a87517547085290e37ff03c7f0a6784b6e7a9e
hovercard-subject-tagrepository:39765732
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-semantic-release/python-semantic-release/issues/994
twitter:imagehttps://opengraph.githubassets.com/0b34ceed225779accbaa7938ce0e09811a86e814d868dbb77c206458b152aafd/python-semantic-release/python-semantic-release
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0b34ceed225779accbaa7938ce0e09811a86e814d868dbb77c206458b152aafd/python-semantic-release/python-semantic-release
og:image:altAutomating Releases via SemVer and Commit Message Conventions - python-semantic-release/python-semantic-release
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-cache
go-importgithub.com/python-semantic-release/python-semantic-release git https://github.com/python-semantic-release/python-semantic-release.git
octolytics-dimension-user_id116517554
octolytics-dimension-user_loginpython-semantic-release
octolytics-dimension-repository_id39765732
octolytics-dimension-repository_nwopython-semantic-release/python-semantic-release
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id39765732
octolytics-dimension-repository_network_root_nwopython-semantic-release/python-semantic-release
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-semantic-release/python-semantic-release/issues/994#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-semantic-release%2Fpython-semantic-release%2Fissues%2F994
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-semantic-release%2Fpython-semantic-release%2Fissues%2F994
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=python-semantic-release%2Fpython-semantic-release
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/994
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/994
Reloadhttps://github.com/python-semantic-release/python-semantic-release/issues/994
python-semantic-release https://github.com/python-semantic-release
python-semantic-releasehttps://github.com/python-semantic-release/python-semantic-release
Notifications https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Fork 264 https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Star 1k https://github.com/login?return_to=%2Fpython-semantic-release%2Fpython-semantic-release
Code https://github.com/python-semantic-release/python-semantic-release
Issues 63 https://github.com/python-semantic-release/python-semantic-release/issues
Pull requests 24 https://github.com/python-semantic-release/python-semantic-release/pulls
Actions https://github.com/python-semantic-release/python-semantic-release/actions
Security 0 https://github.com/python-semantic-release/python-semantic-release/security
Insights https://github.com/python-semantic-release/python-semantic-release/pulse
Code https://github.com/python-semantic-release/python-semantic-release
Issues https://github.com/python-semantic-release/python-semantic-release/issues
Pull requests https://github.com/python-semantic-release/python-semantic-release/pulls
Actions https://github.com/python-semantic-release/python-semantic-release/actions
Security https://github.com/python-semantic-release/python-semantic-release/security
Insights https://github.com/python-semantic-release/python-semantic-release/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-semantic-release/python-semantic-release/issues/994
New issuehttps://github.com/login?return_to=https://github.com/python-semantic-release/python-semantic-release/issues/994
#1016https://github.com/python-semantic-release/python-semantic-release/pull/1016
#1014https://github.com/python-semantic-release/python-semantic-release/pull/1014
Getting "Template directory must be inside of the repository directory." error when not specifying template_dir option.https://github.com/python-semantic-release/python-semantic-release/issues/994#top
#1016https://github.com/python-semantic-release/python-semantic-release/pull/1016
#1014https://github.com/python-semantic-release/python-semantic-release/pull/1014
bugSomething isn't working properlyhttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Wiley-Black
https://github.com/Wiley-Black
Wiley-Blackhttps://github.com/Wiley-Black
on Jul 25, 2024https://github.com/python-semantic-release/python-semantic-release/issues/994#issue-2431097273
check in cli/config.py:582https://github.com/python-semantic-release/python-semantic-release/blob/4e59b501374fe6c6f822cc0e9eb41da3e896f642/semantic_release/cli/config.py#L582
herehttps://github.com/python-semantic-release/python-semantic-release/blob/4e59b501374fe6c6f822cc0e9eb41da3e896f642/semantic_release/cli/config.py#L255
bugSomething isn't working properlyhttps://github.com/python-semantic-release/python-semantic-release/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.