On Sat, 31 Oct 2020 at 13:48, Vadim Zeitlin <vz-s...@zeitlins.org> wrote: > > Would anybody here have any idea about why do CircleCI builds fail when > trying to install markdownlint? In case the build log[*] is not accessible > without CircleCI account, here is the relevant part: > > ---------------------------------- >8 -------------------------------------- > #!/bin/bash -eo pipefail > sudo npm install -g markdownlint-cli > markdownlint --version > > [..................] > + markdownlint-cli@0.24.0 > added 36 packages in 2.321s > /usr/local/lib/node_modules/markdownlint-cli/markdownlint.js:52 > } catch { > ^ > > SyntaxError: Unexpected token { > at createScript (vm.js:74:10) > at Object.runInThisContext (vm.js:116:10) > at Module._compile (module.js:588:28) > at Object.Module._extensions..js (module.js:635:10) > at Module.load (module.js:545:32) > at tryModuleLoad (module.js:508:12) > at Function.Module._load (module.js:500:3) > at Function.Module.runMain (module.js:665:10) > at startup (bootstrap_node.js:201:16) > at bootstrap_node.js:626:3 > > Exited with code exit status 1 > ---------------------------------- >8 -------------------------------------- > > I have no idea why a simple "npm install" should fail like this, does > anybody know more about this? Note that this command runs in > circleci/ruby:2.4.1-node Docker image, should we perhaps use something > different now?
I don't know why this is failing, but it looks like it's started failing after the markdownlint-cli new release. Perhaps something has changed The .circleci/config.yml does not pin the tool at any particular version but installs the latest: sudo npm install -g markdownlint-cli The latest successful build was based on markdownlint-cli 0.22.0 https://app.circleci.com/pipelines/github/SOCI/soci/7/workflows/d60a86af-f303-424a-993c-66cc29e8b602/jobs/389 The failing build(s) are based on markdownlint-cli 0.24.0 https://app.circleci.com/pipelines/github/SOCI/soci/15/workflows/12413004-5f57-4f8c-8172-48a2fa0d6f9e/jobs/400 I'd think that simple locking at the 0.22.0 should fix the build, in .circleci/config.yml - sudo npm install -g markdownlint-cli + sudo npm install -g markdownlint-cli@0.22.0 Notice, each version of https://github.com/igorshubovych/markdownlint-cli depends on particular version of https://github.com/DavidAnson/markdownlint so perhaps something broke in the latter. Alternatively, switch completely to alternative CLI client https://github.com/DavidAnson/markdownlint-cli2 Best regards, -- Mateusz Loskot, http://mateusz.loskot.net _______________________________________________ soci-devel mailing list soci-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/soci-devel