Skip to content

fix(config): ensure default config loads on network mounted windows environments #1124

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

Conversation

codejedi365
Copy link
Contributor

Purpose

Rationale

Similar to the previous error with windows (#994), resolution must take place to make absolute paths and then be able to validate them against one another. I didn't previously run resolve() on the found repo directory so it would display a symlink like alias of the home drive. When the changelog parents were evaluated, the changelog file was fully resolved to the network share that it represented, which caused the error to be thrown.

How did you test?

The issue reporter tried the fix manually and it seemed to work. I modified our generate configuration tests to also load the configuration and run semantic-release --noop --strict version --print which should load the configuration fully and then attempt to evaluate the repository. If any of that fails then it will throw an error. This way we will be able to detect a problem in the future on Windows in the CI, however, the CI does not have networked shares so it will be as close as we can get.

@codejedi365 codejedi365 merged commit a64cbc9 into python-semantic-release:master Dec 16, 2024
12 checks passed
@codejedi365 codejedi365 deleted the fix/windows-default-config-failure branch December 16, 2024 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with location of CHANGELOG.md
1 participant