Skip to content

Importmap:install loads rakefile twice #204

Closed
@Greg-Myers-SB

Description

@Greg-Myers-SB

This will not cause a problem with vast majority of applications, but could if someone changes the state of something global in the rakefile.
This also differs with most other rake tasks in that running webpack:install or yarn:install will only load the rakefile once.

Reproduction

rails new foo
cd foo

add puts 'In Rakefile' to top line of Rakefile

bin/rails importmap:install

Expected

Code runs

In Rakefile
normal output

Actual

In Rakefile
In Rakefile
normal output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions