𝕏のおかげでapplication programming interfaceが一般向けのニュースに登場してるなw

Mastodon mainのyarnが4になったみたいですやーん
https://github.com/mastodon/mastodon/pull/27073

Upgrade to Yarn 4, remove support for Node 16 by renchap · Pull Request #27073 · mastodon/mastodon

某ヘ社はサポートを始めたところだった。よかった。ローカルはどうするんだ…

Yarn 4.x now supported on Heroku | Heroku Dev Center https://devcenter.heroku.com/changelog-items/2714

Yarn 4.x now supported on Heroku | Heroku Dev Center

僕はUbuntuのを使ってるのかな?

$ dpkg -S `which yarn`
yarn: /usr/bin/yarn

いやyarnのやつなのかな?

$ apt show yarn
Package: yarn
Version: 1.22.15-1
Status: install ok installed
Priority: optional
Section: devel
Maintainer: Yarn Developers <yarn@dan.cx>
:

とりあえず :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.

https://devcenter.heroku.com/articles/migrating-from-yarn-classic を参考に、NODE_OPTIONSを--openssl-legacy-providerからunsetしてNODE_MODULES_CACHEをfalseにsetしても同様のエラーでビルドできないぬ。

まずyarnを2に更新してデプロイできるようにしないといけないのかもわねえ
https://devcenter.heroku.com/articles/migrating-from-yarn-classic

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

ローカルでも

$ yarn install --pure-lockfile
yarn install v1.22.15
:
warning Missing version in workspace at "/home/zunda/c/src/github.com/zunda/mastodon", ignoring.
:
? Please choose a version of "babel-plugin-lodash" from this list: (Use arrow keys)
❯ 3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.11
3.2.10
3.2.9
(Move up and down to reveal more choices)

とかなっており。もー

@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したらデプロイできるかな…。ありがとうございます!!

わけのわからないまま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
$ git add .yarnrc.yml
$ git commit -m 'Set yarnPath'
$ git push heroku ...
remote: -----> Build failed
remote: ! Yarn was not found
remote:
remote: It looks like yarn is missing from .yarn/releases/yarn-4.0.1.cjs, which is needed to continue
remote: this build on Heroku. Yarn 2 recommends vendoring Yarn under the '.yarn/releases'
remote: directory, so remember to check the '.yarn' directory into version control
remote: to use during builds.
:

へいへいほー

$ git add .yarn/releases/yarn-4.0.1.cjs
$ git commit --amend -m 'Vendor yarn 4.0.1'
$ git push heroku ...
:

お、yarn installまで進んだ。

TOTPがうまくいかない時はまずは時計が合ってるか確かめるんだけどナンモワカラン

\Master?/ :saba: \ますたー/

Merged mastodon/mastodon at 69d00e272188b9f06bc0323cda248a4f7d37d0bd.

https://github.com/zunda/mastodon/commit/4bf530c8969192240f136bdc2a500ad7c48f6aad でデプロイできるようになったんだけど、はてさて、Yarn 4のライセンスは…

.yarn/releasesに.mdを置いてみたけれどビルドはちゃんと進むようだ。しかしこの作業は人間がやらないといけないものなのかな…

threads.net/.well-known/nodeinfoが301を返してくるのでもしかしたら準備中かと思ったんだけどwww.threads.net/に連れてかれるだけだったぬ

Rustの変数は値を所有することができるからしゅごい
https://doc.rust-jp.rs/book-ja/ch04-01-what-is-ownership.html

所有権とは? - The Rust Programming Language 日本語版

ちぃ難 (Teams)

じゃぱねっとさんまだ1周年!? ずっといらっさるような気がしてた←。おめでとうございますー!!

2023-11-08 14:07:31 くろりんごの投稿 kuroringo@mastodon-japan.net

このアカウントは、notestockで公開設定になっていません。

松江いいな松江

トランジスタは真空管よりちっちゃいからじゃなかったっけ

うーむ

ナンなん?

でかふぇでふぇでばーす

2023-11-08 15:58:47 Aaron Patterson ✅の投稿 tenderlove@mastodon.social

このアカウントは、notestockで公開設定になっていません。

RubyWorld Conference 2023 日本語チャンネル 1日目
https://www.youtube.com/watch?v=TKg2UzNwdgw

Attach YouTube
2023-11-08 16:17:08 たま :ningenha_oroka: bot 💻 :ruby::v_scode:の投稿 tmd45@misskey.systems

開発環境も知識も経験も PATH を通す作業だからね(いいこと言った風)

実行ファイルをどこからもらえばいいかわからないこともあるけどなw (yarnの方を眺めながら)

$ ruby -e 'puts RUBY_VERSION,Encoding.list.size'
3.0.2
103

ぱすきーって誰よきー

ぷーちん戦争が始まって某ヘ社でもロシアのクレカを使えなくしてウクライナの人でもロシアのクレカしか持ってない人は料金払えなくなって困ってたよね。悲しいね

2023-11-08 04:43:07 うみぴの投稿 umi@focalorus.io

このアカウントは、notestockで公開設定になっていません。

これはすごいw

クロスケーブルが混ざってると苦労するよね←

2023-11-08 17:56:20 Asahi Linuxの投稿 AsahiLinux@treehouse.systems

このアカウントは、notestockで公開設定になっていません。

まだSonomaにはせずそのまま了解

クロスで苦ろーす

それでは、お好みを焼いていきたいと思います

セル結合は見た目だけかっこよくなるあたりが中二感満載で好き

八の字巻きにしてあった有線イヤフォンを酔っ払いが取り出すとぐっちゃんぐちゃんに絡まる。諦めて次は無線にしようかな…

津崎さん「僕が入ったとしても灰原さんが作った工程表では回らないとおもい」すこ

2023-11-08 19:28:47 Misreading Chatの投稿 misreading.chat@misreading.chat

このアカウントは、notestockで公開設定になっていません。

2023-11-08 20:02:11 Jun Mukaiの投稿 jmuk@mastodon.cloud

このアカウントは、notestockで公開設定になっていません。

おー!

2023-11-08 20:11:29 sudo_viの投稿 sudo_vi@social.mikutter.hachune.net

このアカウントは、notestockで公開設定になっていません。

ビットコインも法定通貨にしたエルサルバドルではビットコインで支払いできるカフェとかもあるけどすごく普及しているというわけではないらしい(BBC World News Podcast)

ブッカダカが鳥の種類に聞こえてきてなんとかならんか

ゼロサムゲーム(寒くないゲーム)

いろいろ寒いおっさん←

2023-11-08 20:30:02 にくはら🍻の投稿 abagv@mstdn.beer

このアカウントは、notestockで公開設定になっていません。

寒かったw

何度かレイオフの波が過ぎてくのを眺めてると雇用の継続と自分への他人とか自分とかによる評価とぜんぜんまったく関係ないってわかるからまあクビになるまで自分がやるべきと思うことだけやっとくよ

あ。tDiaryにActivityPubプラグインをですね、

@yabuki や、たぶん無くて、作れたらいいなあ、と。手元のtDiaryはCGIでしか動かせてなくて配送キューをさばくのが困難なので僕にはちょっと敷居が高い感じです…。

ActivityPub as a Service みたいの走らせてですね、