mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

とりあえず :saba: いっぱいだ

Fix `RSpec/InstanceVariable` cop (#27766)
Ignore block result of `send` method and remove `rubocop:disable` in deepl spec (#27741)
Using Sidekiq concurrency for default db pool value (#26488)
Use helper method to build batched status edits in `admin/statuses/show` (#27739)
Move RSpec config for streaming/search managers to be near classes (#27761)
Fix `Style/WordArray` cop (#27770)
Don't stub SUT in `FollowLimitValidator` spec (#27760)
New Crowdin Translations (automated) (#27768)
Simplify request cache spec shared examples (#27673)
Remove unmatched `rubocop:enable` declaration (#27769)
Fix `Style/StabbyLambdaParentheses` cop (#27771)
Upgrade to Yarn 4, remove support for Node 16 (#27073)
Fix format-dependent redirects being cached regardless of requested format (#27632)
Use framework helpers instead of i-vars in controller specs (#27767)
Deduplicate yarn lock file (#27670)
Feature - Prevents multiple audio/video attachments from being played at the same time (#24717)

(続く)

Update dependency net-http to '~> 0.4.0' (#27721)
Update dependency react-select to v5.8.0 (#27722)
Update dependency sanitize to v6.1.0 (#27723)
Update dependency simple_form to v5.3.0 (#27725)
Update formatjs monorepo (#27746)
Update dependency selenium-webdriver to v4.15.0 (#27649)
Update dependency json-ld-preloaded to v3.3.0 (#26763)
Update dependency thor to v1.3.0 (#27464)
Update dependency sidekiq-unique-jobs to v7.1.30 (#26091)
Update dependency json-ld to v3.3.0 (#26762)
Update dependency json-schema to v4.1.1 (#26933)
Update dependency aws-sdk-s3 to v1.136.0 (#26999)
Update dependency strong_migrations to v1.6.4 (#27631)
Change alt text to empty string for avatars (#21875)

あかんやーんw

remote: -----> Node.js app detected
remote: -----> Creating runtime environment
remote: NPM_CONFIG_LOGLEVEL=error
remote: USE_YARN_CACHE=true
remote: NODE_OPTIONS=--openssl-legacy-provider
remote: NODE_VERBOSE=false
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote:
remote: -----> Build failed
remote: ! The 'yarnPath' could not be read from the 'yarnrc.yml' file
remote: It looks like 'yarnrc.yml' is missing the 'yarnPath' value, which is needed
remote: to identify the location of yarn for this build.
remote:
remote: To regenerate 'yarnrc.yml' with the 'yarnPath' value set, make sure Yarn 2
remote: is installed on your local machine and set the version in your project
remote: directory with:
remote: $ yarn set version berry
remote:
remote: ! Push rejected, failed to compile Node.js app.

@zundan packageManager は付いてるっぽかったのでビルドステップで corepack enable yarn とかやってみると入りそうな気もします(未検証)

@nzws ありがとうございます。まずはcorepackをインストールするところからですねー。トホホ

@zundan お、node.js のバージョンここ最近のだと標準で入ってるはずですが入ってないです?もしくは素直に yarn set version berry でも。。(差分ができちゃいますが)

zunda

@nzws nodeはsnapで入れたみたい (あんまり覚えてない…) ですが corepack へのパスは通ってなさそうです

$ which node
/snap/bin/node
$ node --version
v20.8.0
$ corepack
corepack: command not found

yarn set version berryはyarn 1.22.15からでもできるんですねえ!!

$ yarn set version berry
➤ YN0000: Retrieving https://repo.yarnpkg.com/4.0.1/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-4.0.1.cjs
➤ YN0000: Done in 0s 959ms
$ git status
:
modified: .yarnrc.yml
Untracked files:
.yarn/releases/
:
$ git diff
diff --git a/.yarnrc.yml b/.yarnrc.yml
index 3186f3f079..71338f8306 100644
--- a/.yarnrc.yml
+++ b/.yarnrc.yml
@@ -1 +1,3 @@
nodeLinker: node-modules
+
+yarnPath: .yarn/releases/yarn-4.0.1.cjs

これをaddしたらデプロイできるかな…。ありがとうございます!!

@zundan な、なるほど。。
yarnPath が無いってエラーだったので Yarn v4 の実態が入手できれば動くはずですー