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

(v2.2.x) Fix empty destination path calculation for validation #730

Conversation

abelsromero
Copy link
Member

@abelsromero abelsromero commented Jan 5, 2024

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Documentation
  • Refactor
  • Build improvement
  • Other (please describe)

What is the goal of this pull request?

Fix #728
Also improve message. We cannot get the exact name without duplication asciidoctor core logic, but now when outputFile is not set simply wildcard will be displayed instead of the source extension to avoid confusion:

[warn] Duplicated destination found: overwriting file: /.../path/single-output.*

Are there any alternative ways to implement this?

We could only check for toDir (as done in main branch) but that would break builds using older AsciidoctorJ versions.

Are there any implications of this pull request? Anything a user must know?

no

Is it related to an existing issue?

  • Yes
  • No

Finally, please add a corresponding entry to CHANGELOG.adoc

@abelsromero abelsromero changed the base branch from main to update-readme-for-2.2.4-release January 5, 2024 15:06
Newer versions of AsciidoctorJ deprecated destinationDir and only use
toDir, which caused the plugin to report paths being overwritten incorrectly.

Closes asciidoctor#728
@abelsromero abelsromero changed the base branch from update-readme-for-2.2.4-release to v2.2.x January 5, 2024 15:06
@abelsromero abelsromero changed the title Issue 728 fix empty destination path calculation for validation Fix empty destination path calculation for validation Jan 5, 2024
@abelsromero abelsromero force-pushed the issue-728-fix-empty-destination-path-calculation-for-validation branch from ef0a6a8 to 138add6 Compare January 5, 2024 16:29
@abelsromero abelsromero changed the title Fix empty destination path calculation for validation (v2.2.x) Fix empty destination path calculation for validation Jan 5, 2024
@abelsromero abelsromero merged commit f610df9 into asciidoctor:v2.2.x Jan 5, 2024
24 checks passed
@abelsromero abelsromero deleted the issue-728-fix-empty-destination-path-calculation-for-validation branch February 11, 2024 17:44
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.

Unexpected warnings "Duplicated destination found: overwriting file: ..."
1 participant