ambrockets icon indicating copy to clipboard operation
ambrockets copied to clipboard

Unable to build due to missing secure_random

Open tyrauber opened this issue 7 years ago • 2 comments

Running $ shards build ambrockets

Results in the following error:

Building: ambrockets
Error target ambrockets failed to compile:
Error in src/ambrockets.cr:1: while requiring "../config/*"

require "../config/*"
^

in config/application.cr:1: while requiring "amber"

require "amber"
^

in lib/amber/src/amber.cr:5: while requiring "secure_random": can't find file 'secure_random' relative to ...

require "secure_random"

tyrauber avatar Jan 27 '18 22:01 tyrauber

Oh, Thank you for this issue!

I need to update this project, secure_random was a breaking change in crystal v0.24.1 😅

faustinoaq avatar Jan 27 '18 22:01 faustinoaq

Yeah, I see. I was able to rebuild the project locally by copying over a couple files into a new amber project. Thanks for the example.

tyrauber avatar Jan 27 '18 22:01 tyrauber