Skip to content
Snippets Groups Projects
  1. Aug 21, 2020
  2. Aug 20, 2020
  3. Aug 19, 2020
  4. Jul 26, 2020
  5. Jul 25, 2020
  6. Jul 19, 2020
  7. Jul 18, 2020
  8. Jul 08, 2020
  9. Jul 07, 2020
  10. Jul 06, 2020
  11. Jun 30, 2020
  12. Jun 02, 2020
  13. May 26, 2020
  14. May 21, 2020
  15. May 18, 2020
  16. May 07, 2020
  17. Apr 29, 2020
  18. Apr 21, 2020
  19. Apr 20, 2020
  20. Apr 14, 2020
  21. Apr 13, 2020
  22. Apr 11, 2020
  23. Apr 07, 2020
  24. Apr 04, 2020
  25. Mar 21, 2020
    • Daniel's avatar
      ci: allow overriding run-docker.sh CARGO_HOME. · 20cd6255
      Daniel authored
      The `ci/run-docker.sh` utility script adds a `--volume` argument to the
      `docker` command to mount the Cargo home directory of the host machine
      into the container at `/cargo`.
      
      Prior to this patch the host's Cargo home directory is assumed to be the
      `dirname` of the `dirname` of the `cargo` command's path. That works in
      most cases where the host machine installed rust with vanilla
      `rustup`. It may fail if the host machine used a different method.
      
      For example if the host machine used the Archlinux rustup package[0]
      then `cargo` is installed to `/usr/bin/cargo` and the `run-docker.sh`
      script incorrectly mounts `/usr/` to the `/cargo` directory of the test
      container.
      
      This patch allows specifying an explicit `CARGO_HOME` to the
      `ci/run-docker.sh` script so that users with a non-standard cargo dir
      can use the utility without modification. By default if no `CARGO_HOME`
      is set then the legacy behaviour is used and `CARGO_HOME` defaults to
      the `dirname` of the `dirname` of the `cargo` command is used.
      
      [0]: https://wiki.archlinux.org/index.php/rust#Arch_Linux_package
      20cd6255
  26. Mar 15, 2020
Loading