We just landed some new checks [0] for `mach vendor rust` that should make
it behave reliably on Windows. If you were unaware, the command had a
tendency to produce different results on Windows, up to and including
deleting random files!

The issues were upstream cargo bugs that have all been fixed in cargo
1.47.0, which is still currently in beta. If you wish to vendor on windows
in the next ~month, you may need to install and use beta or nightly. The
vendor command will enforce this to prevent further issues.

To make beta your default toolchain, you can run these commands in the top
level directory of your gecko checkout:

```
rustup toolchain install beta
rustup override set beta
./mach configure
```

(The `configure` is required to update the cached toolchain path that `mach
vendor rust` uses)

If you ever wish to revert to stable, then you just need to:

```
rustup override set stable
./mach configure
```

Have a great day!

[0]: https://bugzilla.mozilla.org/show_bug.cgi?id=1647582]
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to