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

Bump to nixos-24.11 channel #332

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Bump to nixos-24.11 channel #332

merged 1 commit into from
Nov 26, 2024

Conversation

kachick
Copy link
Collaborator

@kachick kachick commented Nov 26, 2024

特に hugo と sass のバージョンが上がることで #279 以降実際の生成物にも影響するので、そこの確認だけはお願いしたく

image

パット見大きく崩れていなさそうではある(そんな正確に元のを把握しているわけではないけれど、違和感がどんだけあるかという基準で)


Before

> make deps
./print_dependencies.bash
+ nix --version
nix (Nix) 2.24.10
+ hugo version
hugo v0.126.1+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs
+ sass --version
1.77.2
+ go version
go version go1.23.1 linux/amd64
+ make --version
GNU Make 4.4.1
このプログラムは x86_64-pc-linux-gnu 用にビルドされました
Copyright (C) 1988-2023 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL バージョン 3 以降 <https://gnu.org/licenses/gpl.html>
これはフリーソフトウェアです: 自由に変更および配布できます.
法律の許す限り、 無保証 です.
+ dprint --version
dprint 0.45.1
+ typos --version
typos-cli 1.21.0
+ convert --version
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

Version: ImageMagick 7.1.1-39 Q16-HDRI x86_64 e339a05ed:20241002 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5)
Delegates (built-in): bzlib cairo djvu fontconfig freetype heic jng jp2 jpeg jxl lcms lqr lzma openexr pangocairo png raw rsvg tiff webp x xml zlib zstd
Compiler: gcc (13.2)
+ actionlint --version
1.7.0
installed by building from source
built with go1.22.8 compiler for linux/amd64
+ ls --version
ls (GNU coreutils) 9.5
Packaged by https://nixos.org
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.
+ nixfmt --version
nixfmt v0.6.0
+ nixd --version
nixd, version: 2.1.2
+ peco --version
peco version v0.5.11 (built with go1.22.8)
+ vim --version
+ sed -n 1p
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jan 01 1980 00:00:00)
+ markdownlint-cli2 --version
+ grep 'markdownlint v'
markdownlint-cli2 v0.9.0 (markdownlint v0.30.0)

After

> make deps
./print_dependencies.bash
+ nix --version
nix (Nix) 2.24.10
+ hugo version
hugo v0.136.5+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs
+ sass --version
1.80.5
+ go version
go version go1.23.3 linux/amd64
+ make --version
GNU Make 4.4.1
このプログラムは x86_64-pc-linux-gnu 用にビルドされました
Copyright (C) 1988-2023 Free Software Foundation, Inc.
ライセンス GPLv3+: GNU GPL バージョン 3 以降 <https://gnu.org/licenses/gpl.html>
これはフリーソフトウェアです: 自由に変更および配布できます.
法律の許す限り、 無保証 です.
+ dprint --version
dprint 0.47.2
+ typos --version
typos-cli 1.27.3
+ convert --version
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

Version: ImageMagick 7.1.1-40 Q16-HDRI x86_64 08de3ab43:20241109 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5)
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype heic jng jp2 jpeg jxl lcms lqr lzma openexr pangocairo png raw rsvg tiff webp x xml zlib zstd
Compiler: gcc (13.3)
+ actionlint --version
1.7.4
installed by building from source
built with go1.23.3 compiler for linux/amd64
+ ls --version
ls (GNU coreutils) 9.5
Packaged by https://nixos.org
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.
+ nixfmt --version
nixfmt nixpkgs-unstable-2024-08-16
+ nixd --version
nixd, version: 2.5.1
+ peco --version
peco version v0.5.11 (built with go1.23.3)
+ vim --version
+ sed -n 1p
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jan 01 1980 00:00:00)
+ markdownlint-cli2 --version
+ grep 'markdownlint v'
markdownlint-cli2 v0.14.0 (markdownlint v0.35.0)

Copy link

coderabbitai bot commented Nov 26, 2024

Walkthrough

このプルリクエストでは、複数のファイルに対してバージョンアップデートが行われています。.github/workflows/lint.ymlでは、dprintmarkdownlint-cli2-actionのバージョンがそれぞれ0.45.0から0.47.2、および特定のコミットハッシュから新しいコミットハッシュに更新されました。flake.nixでは、nixpkgsのURLがnixos-24.05からnixos-24.11に変更され、go.modではGoのバージョンが1.23.1から1.23.3に更新され、モジュールの要件が追加されました。

Changes

ファイルパス 変更概要
.github/workflows/lint.yml dprintバージョンを0.45.0から0.47.2に更新。markdownlint-cli2-actionを特定コミットから新しいコミットに更新。
flake.nix nixpkgsのURLをnixos-24.05からnixos-24.11に更新。
go.mod Goのバージョンを1.23.1から1.23.3に更新し、github.com/pankona/purehugoの要件を追加。

Possibly related PRs

Suggested reviewers

  • pankona

Warning

There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.

🔧 golangci-lint (1.62.2)

level=error msg="Running error: context loading failed: no go files to analyze: running go mod tidy may solve the problem"


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 9dba0af and 3e1834f.

⛔ Files ignored due to path filters (1)
  • flake.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • .github/workflows/lint.yml (2 hunks)
  • flake.nix (1 hunks)
  • go.mod (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • go.mod
🔇 Additional comments (5)
.github/workflows/lint.yml (2)

27-27: dprintのバージョンアップデートを確認してください

バージョン0.47.2への更新は適切ですが、メジャーな変更点や互換性の問題がないか確認することをお勧めします。

✅ Verification successful

dprintのバージョン更新は安全に適用可能です

0.45.0から0.47.2への更新において、以下の主な変更点が確認できました:

  • プラグインでのBOM処理の変更(#854)
  • パフォーマンス改善(#766)
  • dprint config updateコマンドでプラグイン設定を更新する機能の追加(#722)

重要な注意点:

  • アップグレード後にdprint config updateを実行することを推奨します
  • BOMを含むファイルの処理方法が変更されているため、影響を受ける可能性があります
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: dprintの変更履歴を確認

# リリースノートを確認
gh api \
  -H "Accept: application/vnd.github+json" \
  /repos/dprint/dprint/releases \
  --jq '.[].body' | grep -A 5 "0.4[567]"

Length of output: 2803


36-36: markdownlint-cli2-actionの大幅なバージョンアップに注意

v12からv17への更新は大きなバージョンジャンプとなります。Breaking changesの有無を確認する必要があります。

flake.nix (3)

4-4: チャンネルのアップデートを承認します

nixos-24.11チャンネルへのアップデートは適切です。PRの実行結果から、依存関係の解決とビルドが正常に完了していることが確認できます。


Line range hint 65-77: Hugoアプリケーションの動作確認を推奨

apps.hugo-nixの設定に変更はありませんが、依存するパッケージのバージョンが更新されています。本番環境にデプロイする前に、サイトのビルドとプレビューを確認することを推奨します。


Line range hint 27-53: 依存パッケージのバージョン確認

buildInputsで指定された各パッケージのバージョンを確認しましょう。PRの実行結果と照らし合わせると、以下のツールが期待通りの最新バージョンにアップデートされていることが確認できます:

  • Hugo: 0.136.5+extended
  • SASS: 1.80.5
  • Go: 1.23.3
  • Dprint: 0.47.2
  • その他のツール

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@kachick kachick requested a review from pankona November 26, 2024 03:12
@kachick
Copy link
Collaborator Author

kachick commented Nov 26, 2024

🐰 が go mod tidy をしろと書いてきているけれど、そうすると fork した purehugo への記述が一部消えるのでどうなのだろうか。 golangci-lint を使ったと書いてあるけれど、 hugo が gomodule を利用していることまで考慮済みなのかどうか

-require github.com/pankona/purehugo v0.0.0-20231123145602-5ea1723e15f0 // indirect

@pankona
Copy link
Owner

pankona commented Nov 26, 2024

どうやって成果物の確認するんだっけこれw

@pankona
Copy link
Owner

pankona commented Nov 26, 2024

まあマージしてみようぜ

@pankona pankona merged commit 9360770 into main Nov 26, 2024
9 checks passed
@pankona pankona deleted the nixos-24.11 branch November 26, 2024 06:40
@kachick
Copy link
Collaborator Author

kachick commented Nov 26, 2024

nix 入れた状態で make serve なんだけど、使ってるの自分だけだもんなぁ

https://github.com/pankona/pankona.github.com/blob/936077089a16823b89cb87a535ef9cd4075b7afd/Makefile#L8-L9

なんにせよ #325 は欲しい

@pankona
Copy link
Owner

pankona commented Nov 26, 2024

やっぱそれをやるしかないか、一応コードスペース上で確認はしたのだけど

@pankona
Copy link
Owner

pankona commented Nov 26, 2024

で、デプロイしてみた感じ違和感はなかったのでいったんよしで良いと思います! Azs!

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

Successfully merging this pull request may close these issues.

2 participants