From c30988898d9fa736d4b944c18c83c04c9d2b2587 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 21 Dec 2021 21:14:00 +0530 Subject: [PATCH] all: upgrade to Hugo v0.91.0 [staging] [deploy] --- .github/workflows/deploy-to-cloudflare.yml | 14 ++++++++++++-- .gitignore | 1 + ...chingkotlin-part-3--caveats-coming-from-java.md | 4 ++-- content/posts/tools-of-the-trade-direnv.md | 2 +- content/posts/why-upgrade-android.md | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-to-cloudflare.yml b/.github/workflows/deploy-to-cloudflare.yml index 349db75..c1f3dfa 100644 --- a/.github/workflows/deploy-to-cloudflare.yml +++ b/.github/workflows/deploy-to-cloudflare.yml @@ -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/' diff --git a/.gitignore b/.gitignore index 3aa09f2..6c715b2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ node_modules/ transpiled/ worker/ package-lock.json +.hugo_build.lock diff --git a/content/posts/teachingkotlin-part-3--caveats-coming-from-java.md b/content/posts/teachingkotlin-part-3--caveats-coming-from-java.md index f477fbc..ebb4ba5 100644 --- a/content/posts/teachingkotlin-part-3--caveats-coming-from-java.md +++ b/content/posts/teachingkotlin-part-3--caveats-coming-from-java.md @@ -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 :) \ No newline at end of file +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 :) diff --git a/content/posts/tools-of-the-trade-direnv.md b/content/posts/tools-of-the-trade-direnv.md index bbdafd9..9dbb4b3 100644 --- a/content/posts/tools-of-the-trade-direnv.md +++ b/content/posts/tools-of-the-trade-direnv.md @@ -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). diff --git a/content/posts/why-upgrade-android.md b/content/posts/why-upgrade-android.md index 824d3d2..d532f9c 100644 --- a/content/posts/why-upgrade-android.md +++ b/content/posts/why-upgrade-android.md @@ -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.