GeopJr / BeardBin

A Zero-Knowledge Encrypted Text/Code sharing project
https://milking.men/
Other
10 stars 2 forks source link

Error: can't find file 'kemal' #220

Open colouredflower opened 1 year ago

colouredflower commented 1 year ago

image Can You please tell how to fix this?

GeopJr commented 1 year ago

Thanks for raising this issue!

As the suggested fix mentions: $ shards install.

However, BeardBin has been unmaintained for quite a while and might not be able to get compiled at the moment (both backend and frontend).

colouredflower commented 1 year ago

Thanks for raising this issue!

As the suggested fix mentions: $ shards install.

However, BeardBin has been unmaintained for quite a while and might not be able to get compiled at the moment (both backend and frontend).

I had tried it before submitting the issue but didn't helped

GeopJr commented 1 year ago

I'm not familiar with Nix, could you share the output of shards install?

I just gave it a try, here's what the output should look like:

$ shards install
Resolving dependencies
Fetching https://github.com/gdotdesign/cr-dotenv.git
Fetching https://github.com/kemalcr/kemal.git
Fetching https://github.com/krthr/uuix.git
Fetching https://github.com/elbywan/cryomongo.git
Fetching https://github.com/luislavena/radix.git
Fetching https://github.com/crystal-loot/exception_page.git
Fetching https://github.com/jeromegn/kilt.git
Fetching https://github.com/elbywan/bson.cr.git
Fetching https://github.com/636f7374/durian.cr.git
Fetching https://github.com/crystal-lang/crystal-db.git
Fetching https://github.com/636f7374/coffee.cr.git
Fetching https://github.com/64726f70/ipaddress.cr.git
Fetching https://github.com/73686f77/wrench.cr.git
Installing radix (0.3.9)
Installing kilt (0.4.0)
Installing exception_page (0.1.4)
Installing kemal (0.27.0)
Installing bson (0.3.0)
Installing db (0.10.0)
Installing wrench (0.1.3)
Installing ipaddress (1.0.0)
Installing coffee (0.1.1)
Installing durian (0.1.5)
Installing cryomongo (0.3.4)
Installing dotenv (0.7.0)
Installing uuix (0.1.0 at 04f56c2)
colouredflower commented 1 year ago

I'm not familiar with Nix, could you share the output of shards install?

I just gave it a try, here's what the output should look like:

$ shards install
Resolving dependencies
Fetching https://github.com/gdotdesign/cr-dotenv.git
Fetching https://github.com/kemalcr/kemal.git
Fetching https://github.com/krthr/uuix.git
Fetching https://github.com/elbywan/cryomongo.git
Fetching https://github.com/luislavena/radix.git
Fetching https://github.com/crystal-loot/exception_page.git
Fetching https://github.com/jeromegn/kilt.git
Fetching https://github.com/elbywan/bson.cr.git
Fetching https://github.com/636f7374/durian.cr.git
Fetching https://github.com/crystal-lang/crystal-db.git
Fetching https://github.com/636f7374/coffee.cr.git
Fetching https://github.com/64726f70/ipaddress.cr.git
Fetching https://github.com/73686f77/wrench.cr.git
Installing radix (0.3.9)
Installing kilt (0.4.0)
Installing exception_page (0.1.4)
Installing kemal (0.27.0)
Installing bson (0.3.0)
Installing db (0.10.0)
Installing wrench (0.1.3)
Installing ipaddress (1.0.0)
Installing coffee (0.1.1)
Installing durian (0.1.5)
Installing cryomongo (0.3.4)
Installing dotenv (0.7.0)
Installing uuix (0.1.0 at 04f56c2)

image Gettin this error

colouredflower commented 1 year ago

https://milking.men/#/695a20a8-2237-420d-8143-f3ad17d46bd7/eTW6Yv1rRDkdc5_ImNjBgwIKjZX5hdDQ-1XZ_ZSbU0CiTkguHQQGizmQA5YkJROEgpo9Q7khpFMXVEXN9SsPkw==

GeopJr commented 1 year ago

It does look like a nix issue (shards can't run crystal) here's 2 solutions you could try:

shards.nix:

{
  bson = {
    url = "https://github.com/elbywan/bson.cr.git";
    rev = "v0.3.0";
    sha256 = "02wkqmmvcscl4hc8pr54jb2z02lbph030lg4r8q0ph8yyjxcsr43";
  };
  coffee = {
    url = "https://github.com/636f7374/coffee.cr.git";
    rev = "v0.1.1";
    sha256 = "1k8l5ishz59wbay7rsinp4cblnh0j7rci94a3yg60l12gdf95yab";
  };
  cryomongo = {
    url = "https://github.com/elbywan/cryomongo.git";
    rev = "v0.3.4";
    sha256 = "1p65h6icyvdy5cg97a4wwcprlcvbkk8202lk4k336vgrpvv579li";
  };
  db = {
    url = "https://github.com/crystal-lang/crystal-db.git";
    rev = "v0.10.0";
    sha256 = "1z4zkkz6jpwig0cfi0nl4mqdqpvhp7nq9r9k66qig3ndssc4ya6j";
  };
  dotenv = {
    url = "https://github.com/gdotdesign/cr-dotenv.git";
    rev = "v0.7.0";
    sha256 = "0jxaiv4knyv4rvpl5c3vvg2ynvpy88h56f81lbizi9vz634vgazm";
  };
  durian = {
    url = "https://github.com/636f7374/durian.cr.git";
    rev = "v0.1.5";
    sha256 = "058zzf35l00x5s77i4fkgw30xlzmwc3mkrsy0c0p2cz1d2xp2m60";
  };
  exception_page = {
    url = "https://github.com/crystal-loot/exception_page.git";
    rev = "v0.1.4";
    sha256 = "0bsp2m89sl0bg9d5szbs1nxyk7yk58rkk24aibr39hhb5zi70pqi";
  };
  ipaddress = {
    url = "https://github.com/64726f70/ipaddress.cr.git";
    rev = "v1.0.0";
    sha256 = "03g1lligh33h8w5wg6c03kvm1cdv60f324pikshzxsl1ffrjs45l";
  };
  kemal = {
    url = "https://github.com/kemalcr/kemal.git";
    rev = "v0.27.0";
    sha256 = "01p5fkm6q9k6390dhhw3dwwzlxhxafykknkkcayv1k4ynn126hi7";
  };
  kilt = {
    url = "https://github.com/jeromegn/kilt.git";
    rev = "v0.4.0";
    sha256 = "1w9ib6j4xhwxdxx58nzc06gw7ci7vga03vgj1z1bnklamb0b0l0k";
  };
  radix = {
    url = "https://github.com/luislavena/radix.git";
    rev = "v0.3.9";
    sha256 = "19pksfr7ddc31hvikb433jg0zav1ar93k6zmsgaf3vsrjnvia3ix";
  };
  uuix = {
    url = "https://github.com/krthr/uuix.git";
    rev = "04f56c23f172c79061a618c3ccbffc582152e42b";
    sha256 = "0qlgza22cnl6l4pz66jvpqf7z99kp23qc0x6qfsz9zzg5bbra16z";
  };
  wrench = {
    url = "https://github.com/73686f77/wrench.cr.git";
    rev = "v0.1.3";
    sha256 = "16hp0pz1yi1x9lapq6s80xbgdisbdawn9597kbyn9igmndcaf0kc";
  };
}
colouredflower commented 1 year ago

It does look like a nix issue (shards can't run crystal) here's 2 solutions you could try:

  • Setting the CRYSTAL env var: $ CRYSTAL=/path/to/crystal shards install
  • Using the following nix file I generated using crystal2nix:

shards.nix:

{
  bson = {
    url = "https://github.com/elbywan/bson.cr.git";
    rev = "v0.3.0";
    sha256 = "02wkqmmvcscl4hc8pr54jb2z02lbph030lg4r8q0ph8yyjxcsr43";
  };
  coffee = {
    url = "https://github.com/636f7374/coffee.cr.git";
    rev = "v0.1.1";
    sha256 = "1k8l5ishz59wbay7rsinp4cblnh0j7rci94a3yg60l12gdf95yab";
  };
  cryomongo = {
    url = "https://github.com/elbywan/cryomongo.git";
    rev = "v0.3.4";
    sha256 = "1p65h6icyvdy5cg97a4wwcprlcvbkk8202lk4k336vgrpvv579li";
  };
  db = {
    url = "https://github.com/crystal-lang/crystal-db.git";
    rev = "v0.10.0";
    sha256 = "1z4zkkz6jpwig0cfi0nl4mqdqpvhp7nq9r9k66qig3ndssc4ya6j";
  };
  dotenv = {
    url = "https://github.com/gdotdesign/cr-dotenv.git";
    rev = "v0.7.0";
    sha256 = "0jxaiv4knyv4rvpl5c3vvg2ynvpy88h56f81lbizi9vz634vgazm";
  };
  durian = {
    url = "https://github.com/636f7374/durian.cr.git";
    rev = "v0.1.5";
    sha256 = "058zzf35l00x5s77i4fkgw30xlzmwc3mkrsy0c0p2cz1d2xp2m60";
  };
  exception_page = {
    url = "https://github.com/crystal-loot/exception_page.git";
    rev = "v0.1.4";
    sha256 = "0bsp2m89sl0bg9d5szbs1nxyk7yk58rkk24aibr39hhb5zi70pqi";
  };
  ipaddress = {
    url = "https://github.com/64726f70/ipaddress.cr.git";
    rev = "v1.0.0";
    sha256 = "03g1lligh33h8w5wg6c03kvm1cdv60f324pikshzxsl1ffrjs45l";
  };
  kemal = {
    url = "https://github.com/kemalcr/kemal.git";
    rev = "v0.27.0";
    sha256 = "01p5fkm6q9k6390dhhw3dwwzlxhxafykknkkcayv1k4ynn126hi7";
  };
  kilt = {
    url = "https://github.com/jeromegn/kilt.git";
    rev = "v0.4.0";
    sha256 = "1w9ib6j4xhwxdxx58nzc06gw7ci7vga03vgj1z1bnklamb0b0l0k";
  };
  radix = {
    url = "https://github.com/luislavena/radix.git";
    rev = "v0.3.9";
    sha256 = "19pksfr7ddc31hvikb433jg0zav1ar93k6zmsgaf3vsrjnvia3ix";
  };
  uuix = {
    url = "https://github.com/krthr/uuix.git";
    rev = "04f56c23f172c79061a618c3ccbffc582152e42b";
    sha256 = "0qlgza22cnl6l4pz66jvpqf7z99kp23qc0x6qfsz9zzg5bbra16z";
  };
  wrench = {
    url = "https://github.com/73686f77/wrench.cr.git";
    rev = "v0.1.3";
    sha256 = "16hp0pz1yi1x9lapq6s80xbgdisbdawn9597kbyn9igmndcaf0kc";
  };
}

I am actually using repl.it so I dont know the Location of crystal

GeopJr commented 1 year ago

I can't reproduce it.

Here's the repl: https://replit.com/@testtempaccount/Crystal#replit.nix

GeopJr commented 1 year ago

Hi, is this still active? did you manage to resolve it?