[Genhis][2.0.8] Require() No Longer Works with Symbolic Links

This subforum contains all the issues which we already resolved.
Adamo
Filter Inserter
Filter Inserter
Posts: 481
Joined: Sat May 24, 2014 7:00 am
Contact:

[Genhis][2.0.8] Require() No Longer Works with Symbolic Links

Post by Adamo »

I wonder if it is related to the change from 115137.

Require("file") works fine if the file.lua exists directly but does not follow symbolic links any longer even when file is on the same drive. The require() statement works with symbolic links if I include the "__mod-name__" path prefix, e.g. require("__mod-name__/file").

It returns the error:

Code: Select all

Failed to load mods: __adamo-calibration__/data-final-fixes.lua:1: Invalid path, path is not within a valid mod folder. Path: factsheet.lua
stack traceback:
	[C]: in function 'require'
	__adamo-calibration__/data-final-fixes.lua:1: in main chunk

Genhis
Factorio Staff
Factorio Staff
Posts: 527
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.8] Require() No Longer Works with Symbolic Links

Post by Genhis »

Thanks for the report, this should be fixed for the next release.

Ref. 116690

Post Reply

Return to “Resolved Problems and Bugs”