Skip to content

[azure-cli-persistence] extensions folder exists but is not a symlink #36

Description

@stuartleeks

This error was encountered on a project

In OnCreate script
Permissions of '/dc/azure' are OK!
cliextensions folder found in old .azure folder
cliextensions folder ('/home/vscode/.azure/cliextensions') already exists in but is not a symlink

After some investigation, @cecheta discovered the repro steps:

  • build a dev container with azure-cli-persistence
  • manually install an az CLI extension
  • update the azure-cli feature to install an extension
  • rebuild the dev container

At this point, the manually installed extension causes the cliextensions folder to exist in the persistence volume location.
And the extension installed via the azure-cli feature causes the cliextensions folder to exist in the .azure-old location.

That triggers this condition as the feature expects to be able to create a symlink in $HOME/.azure to point cliextensions to the .azure-old folder.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions