Skip to content

Conversation

gspencergoog
Copy link
Contributor

@gspencergoog gspencergoog commented May 29, 2020

Description

This reverts the flutter command to use shlock when flock isn't available. It seems that the mkdir method isn't as reliable as we want. I think that this is because the trap isn't always executed, which is why I think that shlock uses PIDs to help it be more reliable. Unfortunately, that means that we're back to not working over network shares (which is where things were before I moved to the mkdir method, so not really a regression). I did leave in the mkdir method for platforms that have neither flock nor shlock (which should be very few and far between, but still), so at least we'll do some locking there now.

Related Issues

@gspencergoog gspencergoog changed the title Revert to using shlock when flock isn't available, since mkdir isn't as reliable Revert flutter command to shlock when flock isn't available May 29, 2020
@gspencergoog gspencergoog force-pushed the fix_flutter_locking branch from 6c583fa to 2f3e69c Compare May 29, 2020 23:04
@gspencergoog gspencergoog requested a review from jmagman May 30, 2020 00:49
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gspencergoog gspencergoog merged commit 5267d98 into flutter:master Jun 1, 2020
@gspencergoog gspencergoog deleted the fix_flutter_locking branch June 1, 2020 18:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants