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

forceUpdate is not consistently implemented #6

Open
maddy2101 opened this issue Oct 7, 2018 · 1 comment
Open

forceUpdate is not consistently implemented #6

maddy2101 opened this issue Oct 7, 2018 · 1 comment

Comments

@maddy2101
Copy link

Some files are recreated, some are not. This should please be consistent as to avoid a mixed state of old and new files in the output.

@NamelessCoder
Copy link
Owner

I agree this flag isn't completely obvious - but it is actually intended to be completely up to each individual exporter if it wants to respect the flag. In the implementations that ship with the package there is partial respect for it: overview pages will always be generated (since they likely include links to things like new package versions in the left menu) but the deeper individual pages for ViewHelpers will not unless you force them (so that if you had to make an update in an XSD you can regenerate also the files that normally don't ever need to be regenerated).

Hope that makes sense. I think the alternative to this rather naive strategy, would be something like storing checksums of various asset lists like packages and their versions and as default strategy only regenerate files if a checksum mismatches or file doesn't exist. But of course that takes a much more detailed and shared implementation than just leaving it up to each exporter...

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

No branches or pull requests

2 participants