Skip to content

Instantly share code, notes, and snippets.

View superherointj's full-sized avatar
😱
Human input is error.

superherointj

😱
Human input is error.
View GitHub Profile
@superherointj
superherointj / .gitlab-ci.yml
Created January 24, 2020 20:07
On executing: "gitlab-runner exec docker job_dev_ci"
job_dev_ci:
image: alpine:latest
script:
- echo "Hello"
@superherointj
superherointj / Dockerfile.hello-reason
Last active March 5, 2020 14:18
Esy fails to build "hello-reason" example
FROM superherointj/archlinux-base
# Installs Node/NPM
RUN pacman -S --noconfirm npm nodejs
# Installs Esy as root
RUN npm install -g --unsafe-perm=true esy
### Needed for Git Clone ###
RUN pacman -Syu --noconfirm git openssh
RUN mkdir -p ~/.ssh/
@superherointj
superherointj / Dockerfile
Created March 5, 2020 15:09
Building Esy from Sources
FROM superherointj/archlinux-base
RUN pacman -Syu --noconfirm base-devel perl openssh git npm nodejs
RUN mkdir -p ~/.ssh/
RUN chmod 700 ~/.ssh
### Enabling PERL path for `shasum` dependency and others
ENV PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:${PATH}
@superherointj
superherointj / dune
Created March 12, 2020 15:10
LWT demo - SYNC vs ASYNC printing
(executable
(name lwt_demo1)
(libraries lwt lwt.unix)
(preprocess (pps lwt_ppx))
(flags (:standard -warn-error -22))
)
@superherointj
superherointj / dune
Created March 13, 2020 18:08
Two LWT Promises meet and say Hello World *TOGETHER*
(executable
(name lwthelloworld)
(public_name lwthelloworld)
(libraries lwt lwt.unix)
(preprocess (pps lwt_ppx))
(flags (:standard -warn-error -22))
)
@superherointj
superherointj / dune
Created March 30, 2020 02:45
Esy MUSL
(executable
(name esy-musl)
(flags (-ccopt -static))
)
@superherointj
superherointj / Logs
Created March 30, 2020 02:58
Error MUSL compilador
~/dev/ocaml/esy-musl $ esy build
info esy build 0.6.2 (using package.json)
info building ocaml@github:EduardoRFS/ocaml:package.json#594b838eb90f3b7ed02cd7d0112ce0f52efe95e3@d41d8cd9
info building ocaml@github:EduardoRFS/ocaml:package.json#594b838eb90f3b7ed02cd7d0112ce0f52efe95e3@d41d8cd9: done
info building @opam/dune@opam:2.3.1@b10b59bf
info building @opam/ocamlfind@opam:1.8.1@ff07b0f9
info building @opam/ocamlfind@opam:1.8.1@ff07b0f9: done
info building @opam/dune@opam:2.3.1@b10b59bf: done
info building @opam/cppo@opam:1.6.6@f4f83858
@superherointj
superherointj / Log output
Created March 31, 2020 19:14
Rely demo error
2700x-PC intj ~/git/monorepo/packages/batci (master) $ esy build
info esy build 0.6.2 (using package.json)
File "test/lib/MyFirstTest.re", line 4, characters 33-39:
4 | describe("my first test suite", ({test}) => {
^^^^^^
Error (warning 9): the following labels are not bound in this record pattern:
describe, describeSkip, describeOnly, testSkip, testOnly
Either bind these labels explicitly or add '; _' to the pattern.
File "test/lib/MyFirstTest.re", line 5, characters 32-40:
5 | test("1 + 1 should equal 2", ({expect}) => {
@superherointj
superherointj / esy_build.log
Last active March 31, 2020 21:05
ESY X DEBUG
debug checkStaleness /home/intj/git/monorepo/packages/batci2/esy.lock/index.json: true
debug checkStaleness /home/intj/git/monorepo/packages/batci2/package.json: false
debug cache is stale, discarding
debug reading project cache: 11.187077ms
debug fetching metadata path:./package.json
debug not an override /home/intj/git/monorepo/packages/batci2: error: no such field: source
debug solve config: { Config.installCfg =
{ Config.sourceArchivePath = None;
sourceFetchPath = /home/intj/.esy/source/f;
@superherointj
superherointj / error-output.log
Last active April 1, 2020 19:05
Compile Cpp file for GCC-MUSL
make[1]: Entrando no diretório '/home/intj/git/esy-musl'
musl-gcc fastreplacestring/fastreplacestring.o (exit 1)
(cd _build/default/fastreplacestring && /usr/bin/musl-gcc -I /home/intj/.esy/3_____________________________________________________________________/i/ocaml-0592509b/lib/ocaml -lstdc++ -fPIC -g -o fastreplacestring.o -c fastreplacestring.cpp)
fastreplacestring.cpp:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
make[1]: *** [Makefile:86: build] Erro 1
make[1]: Saindo do diretório '/home/intj/git/esy-musl'