Skip to content

Multitask transitive dependencies unpredictable. #189

@aelsabbahy

Description

@aelsabbahy

Not sure if this is a bug or a misunderstanding on my part. I seem to be getting inconsistent race-condition like behavior with the following setup:

Rakefile:

multitask :default => [:one, :two] do
end

task :two => :one do
  puts "echo 'should not run?'"
end

task :one do
  raise
end

I would expect to never see "should not run?", but I see it intermittently.

for i in {1..10}; do rake 2>/dev/null | grep 'should'; done
echo 'should not run?'
echo 'should not run?'

Activity

grzuy

grzuy commented on Feb 7, 2018

@grzuy
Contributor

I was able to reproduce.
Working on a fix.

added 2 commits that reference this issue on Feb 8, 2018
2bb4029
7caa6af
grzuy

grzuy commented on Feb 23, 2018

@grzuy
Contributor

The following PR attempts to fix this issue
#252

added a commit that references this issue on Mar 19, 2018
a8ebea2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @grzuy@aelsabbahy

        Issue actions

          Multitask transitive dependencies unpredictable. · Issue #189 · ruby/rake