Skip to content

Conversation

@msarahan
Copy link
Contributor

@msarahan msarahan commented Mar 8, 2023

Description

This is a patch from the conda package. This particular code block does not respect QUARTO_PANDOC, and thus can fail when using pandoc other than the standard distribution. I am submitting this against 1.2.x because that's what the conda package builds right now. If you'd prefer it to be only on newer work, let me know. It's fine to remain a patch on the conda package for as long as needed.

Checklist

I have (if applicable):

  • filed a contributor agreement.
  • referenced the GitHub issue this PR closes
  • updated the appropriate changelog

@msarahan msarahan mentioned this pull request Mar 8, 2023
4 tasks
@cscheid cscheid added the needs-discussion Issues that require a team-wide discussion before proceeding further label Mar 10, 2023
@ghost ghost removed the needs-discussion Issues that require a team-wide discussion before proceeding further label Mar 29, 2023
@dragonstyle
Copy link
Collaborator

Sorry I'm late getting to this. I think we explicitly do not want this script to respect that env variable - this is explicitly a build tool that updates the Pandoc version used by our build process. In particular, since it uses the freshly archived Pandoc to generate things like templates and lists of variants, we want to be sure that we're using explicitly the Pandoc that we intend to and don't allow other versions to enter the pipeline and generate Pandoc code which isn't consistent with the version that we are archiving and using in our build process.

I'm closing, but if I'm misunderstanding this or you think I'm missing something, please do re-open and we can chat more to be sure we get this right...

@dragonstyle dragonstyle closed this Apr 6, 2023
@msarahan
Copy link
Contributor Author

msarahan commented Apr 6, 2023

That's fine. I think it's still necessary as a patch in the conda recipe, because there is no archived pandoc.

@msarahan msarahan deleted the QUARTO_PANDOC_RESPECT branch April 6, 2023 14:51
@dragonstyle
Copy link
Collaborator

Just to make sure I'm understanding - that update-pandoc.ts (and contain that private function) is only called from a quarto-bld command which is essentially administrative, primarily for automating build and configuration type operations, and not available in distributed versions of Quarto. I'm thinking this isn't something that should be used at all by the Conda recipe, but I might be not understanding... If it is used I'm happy to try to do something better than what we have to make sure Conda is well supported...

@msarahan
Copy link
Contributor Author

msarahan commented Apr 6, 2023

It's not so much that it is important in the conda package at runtime, but that it is used when creating the conda package. It gets called during the build process, which for Conda does not include any download/vendoring of external tools.

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.

3 participants