Skip to content

Support destination param on Install task #120

@spowser

Description

@spowser

Scenario:

  • Ubuntu VM with 4 attached disks.
    • Each disk has an agent installed on it at /mnt/disk/somedirectory
    • Each agent runs under its own account
    • Each account is added to a group
    • The group has permissions (chmod 2770) to the /opt/hostedtoolcache which is where Flutter gets installed normally

Issue:

  • The first agent to the party succeeds and builds fine
  • The second and third agents that try to install Flutter at almost the same time (race condition) but are just behind the first and throw errors trying to rm files trying to clean up the extraction destination
  • The last agent is a bit slower and sees Flutter is installed but when it attempts to use the SDK gets the following error
Flutter failed to open a file at "/opt/hostedtoolcache/Flutter/3.13.9/linux/flutter/bin/cache/lockfile".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.
Try running:
  sudo chown -R $(whoami) /opt/hostedtoolcache/Flutter/3.13.9/linux/flutter/bin/cache/lockfile

Assumptions:

Since the error is stating the current user doesn't have permissions and the permissions for the lockfile located at /opt/hostedtoolcache/Flutter/3.13.9/linux/flutter/bin/cache, and are NOT 770, the SDK is designed to only allow 1 user to use it at a time

Multiple users on a machine will need their own copies of the SDK to do work in parallel

Request:

Allow the Flutter SDK be installed to a location defined by a parameter

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions