Skip to content

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

Merged
codejedi365 merged 2 commits intopython-semantic-release:masterfrom
codejedi365:fix/windows-default-config-failure
Dec 16, 2024
Merged

fix(config): ensure default config loads on network mounted windows environments#1124
codejedi365 merged 2 commits intopython-semantic-release:masterfrom
codejedi365:fix/windows-default-config-failure

Conversation

@codejedi365
Copy link
Copy Markdown
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
@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