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

Build and deploy fails with : cannot add bindings to a locked environment #58

Closed
ManonMarchand opened this issue Feb 25, 2025 · 2 comments

Comments

@ManonMarchand
Copy link

Hi!

I got an error with the Build full site action today:

This happens in the deploy site step :

Run reset <- "" == "true"
[1] TRUE
Error in `purrr::map()`:
ℹ In index: 1.
ℹ With name: section1_intro.md.
Caused by error in `self$frontmatter <- ep$frontmatter`:
! cannot add bindings to a locked environment
Backtrace:
     ▆
  1. ├─sandpaper:::ci_deploy(reset = reset)
  2. │ └─sandpaper::validate_lesson(path)
  3. │   └─sandpaper:::this_lesson(path)
  4. │     └─.store$set(path)
  5. │       └─pegboard::Lesson$new(path, jekyll = FALSE)
  6. │         └─pegboard (local) initialize(...)
  7. │           └─pegboard:::read_sandpaper_lesson(path, ...)
  8. │             └─pegboard:::read_markdown_files(...)
  9. │               └─purrr::map(.x = the_files, .f = Episode$new, ...)
 10. │                 └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 11. │                   ├─purrr:::with_indexed_errors(...)
 12. │                   │ └─base::withCallingHandlers(...)
 13. │                   ├─purrr:::call_with_cleanup(...)
 14. │                   └─R6 (local) .f(.x[[i]], ...)
 15. │                     └─pegboard (local) initialize(...)
 16. └─base::.handleSimpleError(...)
 17.   └─purrr (local) h(simpleError(msg, call))
 18.     └─cli::cli_abort(...)
 19.       └─rlang::abort(...)
Execution halted

I tried running again in case the issue was temporary, but the second run failed with the same message.

I don't know if a link to the action run could be useful:
https://github.com/cds-astro/a-FAIR-journey-for-astronomical-data/actions/runs/13511552873/job/37768456230

@froggleston
Copy link
Contributor

This is now fixed, so please re-run your build and deploy step and it should succeed.

@ManonMarchand
Copy link
Author

Thank you!!

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