Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.

ci: Hugo extended version in peaceiris/actions-hugo #14

Merged
merged 1 commit into from
Oct 7, 2023
Merged

ci: Hugo extended version in peaceiris/actions-hugo #14

merged 1 commit into from
Oct 7, 2023

Conversation

realeinherjar
Copy link
Contributor

@realeinherjar realeinherjar commented Oct 7, 2023

Fixes the Hugo error in CI. The error message is:

Error: error building site: TOCSS: failed to transform "sass/main.scss" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS with transpiler set to 'libsass'.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information

If you go to the Hugo FAQ, you'll see the following explanation:

We release two set of binaries for technical reasons.
The extended version is not what you get by default
for some installation methods.
On the release page, look for archives with extended in the name.

We fix this by using the extended option in peaceiris/actions-hugo:

extended: true

Now the page should build with hugo.

Fixes the [Hugo error in CI](https://github.com/rust-bitcoin/www.rust-bitcoin.org/actions/runs/6436168630/job/17478960161#step:6:10).
The error message is:

```shell
Error: error building site: TOCSS: failed to transform "sass/main.scss" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS with transpiler set to 'libsass'.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
```

If you go to the [Hugo FAQ](https://gohugo.io/troubleshooting/faq/#i-get--this-feature-is-not-available-in-your-current-hugo-version),
you'll see the following explanation:

> We release two set of binaries for technical reasons.
> The extended version is not what you get by default
> for some installation methods.
> On the release page, look for archives with extended in the name.

We fix this by using the [`extended`](https://github.com/peaceiris/actions-hugo?tab=readme-ov-file#%EF%B8%8F-use-hugo-extended)
option in `peaceiris/actions-hugo`:

```yaml
extended: true
```

Now the page should buiild with hugo.
@realeinherjar realeinherjar mentioned this pull request Oct 7, 2023
12 tasks
Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 13b46ce

@tcharding tcharding merged commit 593f36e into rust-bitcoin:master Oct 7, 2023
@tcharding
Copy link
Member

Thanks!

@realeinherjar realeinherjar deleted the einhejar/fix-hugo branch October 8, 2023 07:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants