There’s a file, just a single file, there’s no shards or anything else.
I want to require it in another file in another folder
This won’t work
require "/alex/projects/inspector/inspector" require "/alex/projects/inspector/inspector.cr"
This also not working
CRYSTAL_PATH=$CRYSTAL_ROOT/src:lib:/alex/projects/inspector require "inspector" require "inspector.cr" require "./inspector" require "./inspector.cr"
I would like to avoid using shards etc. as I have no plans to share that file or publish it. It’s just a file that used by couple of other files in different locations.
I solved it by creating symlink
ln -s /alex/projects/inspector/inspector.cr /alex/projects/my-project/inspector.cr require "./inspector"