all: upgrade to Hugo v0.91.0 [staging] [deploy]

This commit is contained in:
Harsh Shandilya 2021-12-21 21:14:00 +05:30
parent f8d04def7a
commit c30988898d
5 changed files with 17 additions and 6 deletions

View File

@ -17,10 +17,15 @@ jobs:
- name: Setup Latest Version of Hugo
uses: peaceiris/actions-hugo@2e89aa66d0093e4cd14751b3028fc1a179452c2e
with:
hugo-version: 'latest'
hugo-version: '0.91.0'
extended: true
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
- name: Build Hugo Site
shell: bash
run: |
hugo --minify --gc
@ -48,10 +53,15 @@ jobs:
- name: Setup Latest Version of Hugo
uses: peaceiris/actions-hugo@2e89aa66d0093e4cd14751b3028fc1a179452c2e
with:
hugo-version: 'latest'
hugo-version: '0.91.0'
extended: true
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
- name: Build Hugo Site
shell: bash
run: |
hugo --minify --gc -D --baseUrl 'https://drafts.msfjarvis.dev/'

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ node_modules/
transpiled/
worker/
package-lock.json
.hugo_build.lock

View File

@ -14,7 +14,7 @@ When you start migrating your Java code to Kotlin, you will encounter multiple s
Java's `java.lang.String#split` [method](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#split-java.lang.String-) takes a `String` as it's first argument and creates a `Regex` out of it before attempting to split. Kotlin, however, has two variants of this method. One takes a `String` and uses it as a plaintext delimiter, and the other takes a `Regex` behaving like the Java method we mentioned earlier. Code that was directly converted from Java to Kotlin will fail to accommodate this difference, so be on the lookout.
{{< tweet 1202077283579826176 >}}
{{< tweet user="msfjarvis" id="1202077283579826176" >}}
## Runtime asserts
@ -54,4 +54,4 @@ Take about 10 minutes out and give Jake's article a read: [Public API challenges
## Summary
While migrating from Java to Kotlin is great, there are many subtle differences between the languages that can blindside you and must be taken into account. It's more than likely that these problems may never affect you, but it's probably helpful to know what's up when they do :)
While migrating from Java to Kotlin is great, there are many subtle differences between the languages that can blindside you and must be taken into account. It's more than likely that these problems may never affect you, but it's probably helpful to know what's up when they do :)

View File

@ -10,7 +10,7 @@ title = "Tools of the trade: direnv"
This post was supposed to be a monolith directory of all the CLI-based tooling that I use to get things done throughout my day, but it turned out to be just a bit too long so I elected to split it out into separate posts.
{{< tweet 1289965196992114689 >}}
{{< tweet user="msfjarvis" id="1289965196992114689" >}}
Let's talk about [direnv](https://github.com/direnv/direnv).

View File

@ -12,7 +12,7 @@ toc = true
A couple days ago I tweeted this out, partly in response to a security conscious user who was quick to point out why a particular feature had to be added to APS, but failed to realise the fact that the problem wouldn't even exist if they were running the latest version of Android (we'll talk about the behavior change that fixed it later here).
{{< twitter 1285661151104323584 >}}
{{< tweet user="msfjarvis" id="1285661151104323584" >}}
I completely stand by what I said, and for good reason. Android upgrades bring massive changes to the platform, improving security against both known and unknown threats. You sign off that benefit when you buy into an incompetent OEM's cheap phones, and it has become a bit too 'normal' than anybody would prefer.