yatima1460 / Drill

Search files without indexing, but fast crawling
https://drill.software/
GNU General Public License v2.0
268 stars 21 forks source link

Error: file "DRILL_VERSION" cannot be found #71

Closed probonopd closed 2 years ago

probonopd commented 3 years ago

Trying to compile on FreeBSD but getting Error: file "DRILL_VERSION" cannot be found:

% uname -v
FreeBSD 12.1-RELEASE r354233 GENERIC

% curl -fsS https://dlang.org/install.sh | bash -s dmd

% source ~/dlang/dmd-2.095.0/activate

% git clone https://github.com/yatima1460/Drill

% cd Drill

% dub build -b release -c CLI                         
Performing "release" build using /usr/home/user/dlang/dmd-2.095.0/freebsd/bin64/dmd for x86_64.
drill-search ~master: building configuration "CLI"...
Core/Meta.d(15,29): Error: file "DRILL_VERSION" cannot be found or not in a path specified with -J
Core/Meta.d(15,29):        Path(s) searched (as provided by -J):
Core/Meta.d(15,29):        [0]: .
/usr/home/user/dlang/dmd-2.095.0/freebsd/bin64/dmd failed with exit code 1.
probonopd commented 3 years ago

Workaround for building locally: echo 0 > DRILL_VERSION

yochananmarqos commented 3 years ago

I tried passing DRILL_VERSION=566 to the dub build command, but it didn't like that:

Note: Failed to determine version of package drill-search at .. Assuming ~master.
Invalid SemVer format: 566

Creating the DRILL_VERSION file allows it to build, but it still prints the Note warning above.

Both the CLI and GUI report the correct version, so I guess it doesn't make any difference.

yatima1460 commented 2 years ago

@probonopd updated everything and made it a rolling release, so closing this issue; and would be nice to add a simpler AppImage creation too