# Rustup is now installing files into other place?

**URL:** <https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299>\
**Category:** tools and infrastructure\
**Created:** [May 29, 2019, 3:33pm UTC](https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299 "2019-05-29T15:33:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![davemilter](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/davemilter/32/3493_2.png) [@davemilter](https://internals.rust-lang.org/u/davemilter)\
**Post date:** [May 29, 2019, 3:33pm UTC](https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299/1 "2019-05-29T15:33:19Z")

</div>

In my azure pipelines config I have:

```rust
      curl -sSf -o rustup-init.exe https://win.rustup.rs
      rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
      echo ##vso[task.setvariable variable=PATH]%PATH%;%USERPROFILE%\.cargo\bin

```

and starting today this is wrong script, because of after install path is not `%USERPROFILE%\.cargo\bin` as I expected, but instead `C:\Program Files\Rust\.cargo\bin`.

Is something changed in rustup or it is azure pipelines failure?

---

<div class="post-metadata">

**Author:** ![Nemo157](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/nemo157/32/11585_2.png) [@Nemo157](https://internals.rust-lang.org/u/Nemo157)\
**Post date:** [May 29, 2019, 3:37pm UTC](https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299/2 "2019-05-29T15:37:46Z")

</div>

Check if `CARGO_HOME` or `RUSTUP_HOME` environment variables are set when you’re running the install (I don’t remember exactly which specifies what, but I think both are relevant to where `rustup` puts stuff).

---

<div class="post-metadata">

**Author:** ![davemilter](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/davemilter/32/3493_2.png) [@davemilter](https://internals.rust-lang.org/u/davemilter)\
**Post date:** [May 29, 2019, 3:39pm UTC](https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299/3 "2019-05-29T15:39:59Z")

</div>

> [@Nemo157](#):
>
> Check if `CARGO_HOME` or `RUSTUP_HOME` environment variables are set when you’re running the install (I don’t remember exactly which specifies what, but I think both are relevant to where `rustup` puts stuff).

But this is inside virtual machine provided by Microsoft, I did not change anything in it's yaml config during week or so. So how these new envrironemnt variables can appear, MS added rust to default azure pipeline VM?

---

<div class="post-metadata">

**Author:** ![Nemo157](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/nemo157/32/11585_2.png) [@Nemo157](https://internals.rust-lang.org/u/Nemo157)\
**Post date:** [May 29, 2019, 3:44pm UTC](https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299/4 "2019-05-29T15:44:15Z")

</div>

> [@davemilter](#):
>
> MS added rust to default azure pipeline VM?

The [Ubuntu image](https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/linux/Ubuntu1604-README.md) at least appears to have it. The windows image READMEs don't list it, but there is [a powershell script](https://github.com/microsoft/azure-pipelines-image-generation/blob/3094aae26ca0c10bfc6654d7809a0bb03c93bc46/images/win/scripts/Installers/Install-Rust.ps1) for installing it.

---

<div class="post-metadata">

**Author:** ![davemilter](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/davemilter/32/3493_2.png) [@davemilter](https://internals.rust-lang.org/u/davemilter)\
**Post date:** [May 29, 2019, 7:35pm UTC](https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299/5 "2019-05-29T19:35:24Z")

</div>

> [@Nemo157](#):
>
> The windows image READMEs don’t list it, but there is [a powershell script](https://github.com/microsoft/azure-pipelines-image-generation/blob/3094aae26ca0c10bfc6654d7809a0bb03c93bc46/images/win/scripts/Installers/Install-Rust.ps1)

Looks like this is the issue. I setted environment variable to ignore pre-installed rustc and all build becomes green again.

---

<div class="post-metadata">

**Author:** ![johnterickson](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/johnterickson/32/5737_2.png) [@johnterickson](https://internals.rust-lang.org/u/johnterickson)\
**Post date:** [May 29, 2019, 10:19pm UTC](https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299/6 "2019-05-29T22:19:05Z")

</div>

The newest images of Azure Pipelines have rustup installed for all OSes. You can see more here: [https://github.com/Microsoft/azure-pipelines-image-generation/pull/900[https://github.com/Microsoft/azure-pipelines-image-generation/pull/900]](https://github.com/Microsoft/azure-pipelines-image-generation/pull/900%5Bhttps://github.com/Microsoft/azure-pipelines-image-generation/pull/900%5D)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [August 27, 2019, 10:19pm UTC](https://internals.rust-lang.org/t/rustup-is-now-installing-files-into-other-place/10299/7 "2019-08-27T22:19:23Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
