Open drammock opened 2 years ago
I am not sure how node works and need to spend some time looking into it. Since you already asked a question about node, I am going to add another question (maybe it is related?).
I noticed that node-version = "16.13.2"
is set in pyproject.toml
. I wanted to update that to "16.17.1"
and I wanted to check what version of node
is being used in our CI. In the tests run on https://github.com/pydata/pydata-sphinx-theme/pull/996/commits/739fe00cbbb70169202e341b9768cfb25cde2e52, it says it is using "16.17.1"
(see https://github.com/pydata/pydata-sphinx-theme/actions/runs/3206578864/jobs/5240503666). Then I noticed that it also says it is using "16.17.1"
(see https://github.com/pydata/pydata-sphinx-theme/actions/runs/3206598156/jobs/5240545764) when node-version = "16.13.2"
is set in pyproject.toml
(see https://github.com/pydata/pydata-sphinx-theme/pull/996/commits/5667f6bb444f3baea6f7a3d8bc00d79741e7ab50).
Am I checking in the right place? Does setting node-version
in pyproject.toml
do anything?
after sleeping on it, I developed the suspicion that pre-commit was starting subshells and that's why it was using the wrong node... but that doesn't make sense because $PATH
is a global env variable. then I simply tried again, and didn't get the error 🤷🏻
I'll leave this open though, and change the title to reflect the question @jarrodmillman just raised.
Here's how [the Sphinx Theme Builder](https://sphinx-theme-builder.readthedocs.io/en/latest/build-process/#nodeenv-validation describes the node environment management).
I suggest that we move this from the v0.13 milestone, I don't think it's crucial for the next release.
I think we should remove it from any milestone, it's there for 3 releases and it's not bothering that much. I hope a solution will be found eventually
EDIT the original question below is now moot and hidden behind
details
. This issue has been converted to focus on @jarrodmillman's question in the first comment