summaryrefslogtreecommitdiff
path: root/src/content/pastebins/2019
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/pastebins/2019')
-rw-r--r--src/content/pastebins/2019/06/08/inconsistent-hash.adoc55
-rw-r--r--src/content/pastebins/2019/12/29/raku-tuple-type.adoc24
2 files changed, 30 insertions, 49 deletions
diff --git a/src/content/pastebins/2019/06/08/inconsistent-hash.adoc b/src/content/pastebins/2019/06/08/inconsistent-hash.adoc
index 51d8ad3..5877018 100644
--- a/src/content/pastebins/2019/06/08/inconsistent-hash.adoc
+++ b/src/content/pastebins/2019/06/08/inconsistent-hash.adoc
@@ -1,35 +1,24 @@
----
+= Inconsistent hash of buildGoModule
-title: Inconsistent hash of buildGoModule
+:commit: https://euandre.org/git/servers/commit?id=6ba76140238b5e3c7009c201f9f80ac86063f438
-date: 2019-06-08
+''''
-layout: post
+FIXED: The `<nixpkgs>` was different on different environments. See
+https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2.
-lang: en
+''''
-eu_categories: nix
+The {commit}[commit that made this visible].
-ref: inconsistent-hash-of-buildgomodule
+== Offending derivation:
----
+:orig-src: https://euandre.org/git/servers/tree/default.nix?id=6ba76140238b5e3c7009c201f9f80ac86063f438#n3
-FIXED: The `<nixpkgs>` was different on different environments.
-See <https://discourse.nixos.org/t/inconsistent-hash-of-buildgomodule/3127/2>.
+{orig-src}[Full source code on the repository]:
----
-
-The [commit that made this visible][0].
-
-[0]: https://euandre.org/git/servers/commit?id=6ba76140238b5e3c7009c201f9f80ac86063f438
-
-## Offending derivation:
-
-[Full source code on the repository][1]:
-
-[1]: https://euandre.org/git/servers/tree/default.nix?id=6ba76140238b5e3c7009c201f9f80ac86063f438#n3
-
-```nix
+[source,nix]
+----
terraform-godaddy = pkgs.buildGoModule rec {
name = "terraform-godaddy-${version}";
version = "1.6.4";
@@ -43,11 +32,12 @@ terraform-godaddy = pkgs.buildGoModule rec {
postInstall =
"mv $out/bin/terraform-godaddy $out/bin/terraform-provider-godaddy";
};
-```
+----
-## Local build:
+== Local build:
-```shell
+[source,shell]
+----
$ nix-build -A terraform-godaddy
these derivations will be built:
/nix/store/3hs274i9qdsg3hsgp05j7i5cqxsvpcqx-terraform-godaddy-1.6.4-go-modules.drv
@@ -193,14 +183,15 @@ hash mismatch in fixed-output derivation '/nix/store/jgbfkhlsz6bmq724p5cqqcgfyc7
got: sha256:10n2dy7q9kk1ly58sw965n6qa8l0nffh8vyd1vslx0gdlyj25xxs
cannot build derivation '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv': 1 dependencies couldn't be built
error: build of '/nix/store/y5961vv6y9c0ps2sbd8xfnpqvk0q7qhq-terraform-godaddy-1.6.4.drv' failed
-```
+----
-## Build [on CI](https://builds.sr.ht/~euandreh/job/67836#task-setup-0):
+== Build https://builds.sr.ht/~euandreh/job/67836#task-setup-0[on CI]:
-The `setup.sh` script contains a call to `nix-shell` which in turns
-build the same `terraform-godaddy` derivation:
+The `setup.sh` script contains a call to `nix-shell` which in turns build the
+same `terraform-godaddy` derivation:
-```shell
+[source,shell]
+----
$ cd vps/
$ ./scripts/ci/setup.sh
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
@@ -1058,4 +1049,4 @@ hash mismatch in fixed-output derivation '/nix/store/q8y0mzjl78hfhazjgq2sc84i7dp
cannot build derivation '/nix/store/w4ghinrmpq524k3617ikfc8i42aa0dbb-terraform-godaddy-1.6.4.drv': 1 dependencies couldn't be built
copying path '/nix/store/63gjp25l4cmdkl63zy0rcgmsvd2p2p34-terraform-0.11.14' from 'https://cache.nixos.org'...
error: build of '/nix/store/9drkn1qxkkcrz5g3413lpmbc2xysa582-terraform-0.11.14.drv', '/nix/store/w4ghinrmpq524k3617ikfc8i42aa0dbb-terraform-godaddy-1.6.4.drv' failed
-```
+----
diff --git a/src/content/pastebins/2019/12/29/raku-tuple-type.adoc b/src/content/pastebins/2019/12/29/raku-tuple-type.adoc
index 3d5ff34..8bb7250 100644
--- a/src/content/pastebins/2019/12/29/raku-tuple-type.adoc
+++ b/src/content/pastebins/2019/12/29/raku-tuple-type.adoc
@@ -1,18 +1,7 @@
----
+= Raku tuple type annotation
-title: Raku tuple type annotation
-
-date: 2019-12-29
-
-layout: post
-
-lang: en
-
-ref: raku-tuple-type-annotation
-
----
-
-```perl
+[source,perl]
+----
# Single Str return value: this works
sub f1(Str $in --> Str) {
$in;
@@ -27,11 +16,12 @@ sub f2(Str $in) {
sub f2(Str $in --> (Str, Str)) {
($in, $in);
}
-```
+----
Error log is:
-```perl
+[source,perl]
+----
===SORRY!=== Error while compiling /path/to/my/file
Malformed return value
-```
+----