Skip to content

Use afero to read/write .talismanrc file #473

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

Merged
merged 7 commits into from
Mar 28, 2025
Merged

Use afero to read/write .talismanrc file #473

merged 7 commits into from
Mar 28, 2025

Conversation

tw-owen-nelson
Copy link
Collaborator

No description provided.

This also highlights (and fixes) invalid tests that were only looking at
newly-written .talismanrc additions.

Authored-by: Owen Nelson <[email protected]>
This removes the need for setting different repo file readers. Other
tests still use afero to mock the filesystem and ensure that we can load
a TalismanRC struct from a .talismanrc file.

Authored-by: Owen Nelson <[email protected]>
Authored-by: Owen Nelson <[email protected]>
Because it's an in-memory filesystem, we can just use a file named
.talismanrc instead of creating and using a temp file.

Authored-by: Owen Nelson <[email protected]>
@tw-owen-nelson tw-owen-nelson merged commit 68191ff into main Mar 28, 2025
5 checks passed
@tw-owen-nelson tw-owen-nelson deleted the use-afero branch March 28, 2025 20:57
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.

1 participant