Skip to content

[Bug] Double loading symlinked files #3138

Open
@itarato

Description

@itarato

Consider the same file loaded twice, with and without a symlinked path:

mkdir real_dir
ln -s real_dir symlink_dir
cat 'puts("Loaded")' > real_dir/script.rb
require_relative("./real_dir/script")
require_relative("./symlink_dir/script")

CRuby loads the script once (Output = Loaded\n). TruffleRuby loads it twice (Output = Loaded\nLoaded\n).

Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions