-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Based on similar issues filed and already closed without resolution, I found that the function _lock
in bin/internal/shared.sh
presumes well behaved flock
functions in Linux. However, at least Centos with NFS (my setup), the presumption is false, and the function fails. It works if patched like this:
function _lock () {
# if hash flock 2>/dev/null; then
# flock --nonblock --exclusive 7 2>/dev/null
# elif hash shlock 2>/dev/null; then
# shlock -f "$1" -p $$
# else
# mkdir "$1" 2>/dev/null
# fi
mkdir "$1" 2>/dev/null
}
But that clearly is not a universal patch.
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team