Skip to content

Set DOTNET_CLI_HOME to a repo-local path #5402

Open

Description

@dsplaisted
  • This issue is blocking
  • This issue is causing unreasonable pain

By default, the CLI will use a user-specific folder for a few things, including first run sentinels and global tool information. The folder can be overridden with the DOTNET_CLI_HOME environment variable. Arcade should set this variable to a repo-local path, to avoid different builds (ie on CI machines or build servers) sharing this folder. While we should generally keep compatibility, that may not always be true between interim preview builds.

This has broken builds at least twice:

Activity

  1. ViktorHofer commented on May 4, 2020

    @ViktorHofer
    Member

    @janvorli that's the issue that is tracking the right fix for the issue that you were seeing locally. cc @jaredpar

  2. ghost
    self-assigned this
    on Jul 8, 2020
  3. ghost closed this as completedin #5775on Jul 15, 2020
  4. ghost reopened this on Jul 17, 2020
  5. ghost closed this as completedon Jul 17, 2020
  6. MattGal commented on Jul 20, 2020

    @MattGal
    Member

    Reopening and putting in the backlog. This change was the source for #5813 , but since it has the context I'm reactivating this one.

    The latest arcade validation builds were failing to resolve nuget v3 paths, reverting just this change unblocked them, as shown in this build

  7. 6 remaining items

  8. alexperovich commented on Jul 30, 2020

    @alexperovich
    Member
  9. alexperovich commented on Jul 30, 2020

    @alexperovich
    Member

    Filed issue with azure pipelines: microsoft/azure-pipelines-tasks#13375

  10. garath commented on Jul 30, 2020

    @garath
    Member

    Triage: For Helix, a Big Improvement would be to recycle machines for every build (hosted pool does this).

  11. removed their assignment
    on Aug 4, 2020
  12. lukas-lansky commented on Feb 9, 2021

    @lukas-lansky
    Contributor

    I'm all for better isolation between CI builds – it really makes everything so much simpler – but dotnet/runtime#34994 is a local build problem and is waiting for the resolution of this issue.

  13. ViktorHofer commented on Feb 9, 2021

    @ViktorHofer
    Member

    This issue points to a local build problem, you are right. But we would still see the issue if we wouldn't have disable repo tools being restored in CI temporarily: dotnet/runtime@97d1f96. So this still very much applies and needs to be fixed.

  14. added this to the Arcade SDK milestone on Apr 24, 2024
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions