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

sudo snap install dart-sass takes long time in deploy #276

Closed
kachick opened this issue Apr 4, 2024 · 7 comments · Fixed by #279
Closed

sudo snap install dart-sass takes long time in deploy #276

kachick opened this issue Apr 4, 2024 · 7 comments · Fixed by #279
Assignees

Comments

@kachick
Copy link
Collaborator

kachick commented Apr 4, 2024

https://github.com/pankona/pankona.github.com/actions/runs/8551974378/job/23432123556

https://github.com/pankona/pankona.github.com/actions/runs/8552143112/job/23432647708

3.5~8 分とか消費しても dart-sass-embedded のインストールが終わらない。支配的なので解消して置きたい

https://gohugo.io/hosting-and-deployment/hosting-on-github/

公式資料だと単純にパッケージが変更されてるんだけど、それで解消するのかは謎

sass/dart-sass-embedded@4190c31

@kachick kachick self-assigned this Apr 4, 2024
@kachick kachick added this to 🛸 Apr 4, 2024
@kachick kachick moved this to 💪 in 🛸 Apr 4, 2024
@kachick kachick changed the title sudo snap install dart-sass-embedded takes long time in deploy sudo snap install dart-sass takes long time in deploy Apr 4, 2024
@kachick
Copy link
Collaborator Author

kachick commented Apr 4, 2024

dart-sass-embedded から dart-sass に差し替えることによる顕著な改善はなかった

@kachick
Copy link
Collaborator Author

kachick commented Apr 4, 2024

そもそも https://github.com/dplesca/purehugo (実際には forkしたやつ)でもここでもSASS/SCSS使ってないっぽいので、いらないという話は無いか
いるのであれば、こうなってくると Nix に寄せてった方が安定しそう

@kachick
Copy link
Collaborator Author

kachick commented Apr 4, 2024

nixpkgs に dart-sass はあるんだけど、それ以前に hugo が extended なやつが入る。
そして extended なら SASS/SCSS 対応が含まれているという理解・・・ https://gohugo.io/troubleshooting/faq/#i-get--this-feature-is-not-available-in-your-current-hugo-version

@kachick
Copy link
Collaborator Author

kachick commented Apr 4, 2024

https://github.com/gohugoio/hugo/blob/2fedca6c8ae2ce1e563dc2b2e2a4b781864b6703/docs/content/en/installation/_common/01-editions.md?plain=1#L5-L12

## Editions

Hugo is available in two editions: standard and extended. With the extended edition you can:

- Encode to the WebP format when [processing images]. You can decode WebP images with either edition.
- [Transpile Sass to CSS] using the embedded LibSass transpiler. The extended edition is not required to use the [Dart Sass] transpiler.

We recommend that you install the extended edition.

@kachick
Copy link
Collaborator Author

kachick commented Apr 4, 2024

💭 結局、dart-sass を使うのは推奨で、dart-sassの機能を完全に extended version が肩代わりできるわけではないよと言っているんだろうか・・・?

https://github.com/gohugoio/hugo/blob/2fedca6c8ae2ce1e563dc2b2e2a4b781864b6703/docs/content/en/installation/_common/02-prerequisites.md?plain=1#L22

Dart Sass is required to transpile Sass to CSS when using the latest features of the Sass language.

@kachick
Copy link
Collaborator Author

kachick commented Nov 26, 2024

https://github.com/sass/dart-sass/blob/9abdfaa80e032a6868b30436f670e27a19fb0fd4/README.md?plain=1#L90-L98

dart-sass を github releases から入手も可能。 本家では #279 にも書いたけれど brew が使われているし、 デプロイフローから Nix への依存を落とすのも大変ではなさそうな気がする(自分としては Nix 経由デプロイの方が楽なのでそのままにしておきますが、必要なら教えて下さい!)

@kachick
Copy link
Collaborator Author

kachick commented Dec 25, 2024

https://github.com/gohugoio/hugo/blob/845b8885def02b1e52f5e03fb5d9503248d5022b/.github/workflows/test.yml#L79-L87

hugo 自体の test でも github release から使われている

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 a pull request may close this issue.

1 participant