Skip to content
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

Mark output files readonly #52

Closed
JayBazuzi opened this issue Jun 22, 2019 · 4 comments
Closed

Mark output files readonly #52

JayBazuzi opened this issue Jun 22, 2019 · 4 comments
Milestone

Comments

@JayBazuzi
Copy link
Contributor

Is the feature request related to a problem?

Often while iterating on documentation, we accidentally edit the output files instead of the source files. These edits then get wiped out when we rerun mdsnippets.

Describe the solution

mdsnippets could mark the output files to be writable before writing them, and set them back to readonly right after.

Describe alternatives considered

None at this time.

Additional context

We're on Windows.

Thanks,

  • Jay and Llewellyn
@claremacrae
Copy link
Contributor

I really like this idea.

@SimonCropp
Copy link
Owner

Is it safe to mark files under source control as read only? Couldn’t this potentially interfere with the source control tooling?

@SimonCropp SimonCropp added this to the 11.0.0 milestone Jun 27, 2019
@SimonCropp
Copy link
Owner

@SimonCropp
Copy link
Owner

This is now deployed. NuGet may take some time to make it available for download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants