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

Plugin error when specifying environment variable QUARTO_VERSION #4

Open
zonca opened this issue Sep 30, 2022 · 2 comments
Open

Plugin error when specifying environment variable QUARTO_VERSION #4

zonca opened this issue Sep 30, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@zonca
Copy link

zonca commented Sep 30, 2022

I specified QUARTO_VERSION to install a pre-release:

QUARTO_VERSION=1.2.172

cat netlify.toml 
[[plugins]]
package = "@quarto/netlify-plugin-quarto"

cat package.json 
{
  "dependencies": {
    "@quarto/netlify-plugin-quarto": "^0.0.5"
  }
}

Here the error on Netlify:

9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM:   1. @quarto/netlify-plugin-quarto (onPreBuild event)           
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: ​
9:30:52 AM: ​
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM:   Plugin "@quarto/netlify-plugin-quarto" internal error         
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: ​
9:30:52 AM:   Error message
9:30:52 AM:   Error: function () { [native code] } could not be cloned.
9:30:52 AM: ​
9:30:52 AM:   Plugin details
9:30:52 AM:   Package:        @quarto/netlify-plugin-quarto
9:30:52 AM:   Version:        0.0.5
9:30:52 AM:   Repository:     git+https://github.com/quarto-dev/netlify-plugin-quarto.git
9:30:52 AM:   npm link:       https://www.npmjs.com/package/@quarto/netlify-plugin-quarto
9:30:52 AM:   Report issues:  https://github.com/quarto-dev/netlify-plugin-quarto/issues
9:30:52 AM: ​
9:30:52 AM:   Error location
9:30:52 AM:   In "onPreBuild" event in "@quarto/netlify-plugin-quarto" from netlify.toml and package.json
9:30:52 AM:       at writeChannelMessage (node:internal/child_process/serialization:109:9)
9:30:52 AM:       at process.target._send (node:internal/child_process:840:17)
9:30:52 AM:       at process.target.send (node:internal/child_process:740:19)
9:30:52 AM:       at node:internal/util:361:7
9:30:52 AM:       at new Promise (<anonymous>)
9:30:52 AM:       at bound  (node:internal/util:347:12)
9:30:52 AM:       at sendEventToParent (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/plugins/ipc.js:123:46)
9:30:52 AM:       at handleError (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/plugins/child/error.js:13:9)
9:30:52 AM:       at handleEvent (file:///opt/buildhome/node-deps/node_modules/@netlify/build/lib/plugins/child/main.js:45:11)
9:30:52 AM:       at processTicksAndRejections (node:internal/process/task_queues:96:5)
9:30:52 AM: ​
9:30:52 AM:   Resolved config
9:30:52 AM:   build:
9:30:52 AM:     environment:
9:30:52 AM:       - QUARTO_VERSION
9:30:52 AM:     publish: /opt/build/repo/_site
9:30:52 AM:     publishOrigin: ui
9:30:52 AM:   plugins:
9:30:52 AM:     - inputs: {}
9:30:52 AM:       origin: config
9:30:52 AM:       package: '@quarto/netlify-plugin-quarto'
9:30:52 AM: Caching artifacts
9:30:53 AM: Creating deploy upload records
9:30:52 AM: Started saving node modules
9:30:52 AM: Finished saving node modules
9:30:52 AM: Started saving build plugins
9:30:52 AM: Finished saving build plugins
9:30:52 AM: Started saving pip cache
9:30:53 AM: Failed during stage 'building site': Build script returned non-zero exit code: 3 (https://ntl.fyi/exit-code-3)
9:30:52 AM: Finished saving pip cache
9:30:52 AM: Started saving emacs cask dependencies
9:30:52 AM: Finished saving emacs cask dependencies
9:30:52 AM: Started saving maven dependencies
9:30:52 AM: Finished saving maven dependencies
9:30:52 AM: Started saving boot dependencies
9:30:52 AM: Finished saving boot dependencies
9:30:52 AM: Started saving rust rustup cache
9:30:52 AM: Finished saving rust rustup cache
9:30:52 AM: Started saving go dependencies
9:30:52 AM: Finished saving go dependencies
9:30:53 AM: Build failed due to a plugin error: Build script returned non-zero exit code: 3
9:30:53 AM: Failing build: Failed to build site
9:30:54 AM: Finished processing build request in 17.875993949s
@zonca zonca added the bug Something isn't working label Sep 30, 2022
@cscheid cscheid self-assigned this Oct 1, 2022
@cscheid
Copy link
Collaborator

cscheid commented Oct 1, 2022

This is a known issue we are having sporadically with netlify, unfortunately, and it's a bug on netlify's side. I'm just letting you know "we are aware, and are investigating a fix", but I can give no firm timeline at this moment.

@zonca
Copy link
Author

zonca commented Oct 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants