Граф коммитов

2007 Коммитов

Автор SHA1 Сообщение Дата
Robert Maynard 9e6461851b Run fmt on compiler.rs 2023-04-30 17:12:01 +02:00
Robert Maynard a676ab754b Add comments explaining why we need this change. 2023-04-30 17:12:01 +02:00
Robert Maynard ed01690522 Fix clippy latest issues found by CI 2023-04-30 17:12:01 +02:00
Robert Maynard 129cd2bcb7 Fix build issues found by CI with other compiler versions 2023-04-30 17:12:01 +02:00
Robert Maynard c9c8622144 Fix clippy issues found by CI 2023-04-30 17:12:01 +02:00
Robert Maynard 0c648ab9e4 nvcc: Handle compiler detection when gcc isn't on the path
To properly handle compiler detction sccache invokes the compiler
with -E. To generate the preprocessed output `nvcc` invokes the host
comiler, which either requires gcc to be on the path or `-ccbin` argument
to be provided.

This PR allows `sccache` to be used with `nvcc` when `gcc` isn't
on the path but the host compiler to be used is included via `-ccbin`.

This was found when building small build images which only had
a compiler with a name like `gcc-aarch64`.
2023-04-30 17:12:01 +02:00
Robert Maynard 8ce1bdc918 nvcc: Correctly handle -ccbin argument given a directory 2023-04-26 15:25:00 +02:00
Sylvestre Ledru 844da89899 version 0.4.2 2023-04-24 12:11:43 +02:00
Sylvestre Ledru 79a50d3491
Improve the doc a bit 2023-04-24 11:14:39 +02:00
Craig Scott 1fa8492d9c Add support for -Xclang -fno-pch-timestamp
Fixes: #1720
2023-04-24 10:06:25 +02:00
tottoto 226fa48ae3
Update to directories 5.0.0 and opendal 0.30.5 (#1716)
* Update to directories 5.0.0

* Update to opendal 0.30.5
2023-04-24 10:05:58 +02:00
AJ Schmidt 75c033046e
Make `SCCACHE_S3_NO_CREDENTIALS` require a value of `true` (#1724) 2023-04-24 10:04:19 +02:00
Alexei Barnes 39632a71aa Add test for depfile flags for MSVC 2023-04-24 09:21:25 +02:00
Alexei Barnes ee5f3e8f2e Tests for /Fp and /Yc with MSVC
Same flag, different name.
2023-04-24 09:21:25 +02:00
Alexei Barnes 56681e762a Add parsing for flags: Zm, Yc, sourceDependencies
* Zm can just pass through. It's related to PCH which we don't handle yet. However, Zm doesn't actually force creating a PCH, so it's not actually hard to handle independently.
* Yc is compile a PCH and it's too hard right now. Adding it to too hard means better stats from the server about why it could not cache compilation.
* sourceDependencies is identical to /deps, just a different name that some systems seem to prefer to use when construction MSVC compile commands.
2023-04-24 09:21:25 +02:00
Yihau Chen 3b70d6b7fb
fix: rust coverage test meets compile error for missing debuginfo (#1740) 2023-04-24 07:58:23 +02:00
Jiahao XU 2c84fb685f
Bump msrv to 1.65.0 (#1743)
* Bump msrv to 1.65.0

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix clippy v1.65.0 warnings

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-24 12:38:36 +08:00
Dmitry Tretyakov 6fffb2a20e use authentication in webdav test 2023-04-20 11:52:51 +02:00
Dmitry Tretyakov 86a1f1ad6f Support authentication in WebDAV storage (#1608)
It brings ability to provide the following type of credentials:
- username/password
- token
2023-04-20 11:52:51 +02:00
Jiahao XU 4a8b5f556d Update `Cargo.lock`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-19 19:46:43 +02:00
Jiahao XU 6e92b2e0fe Disable trust-dns-resolver/dns-over-quic due to build failure on freeBSD
https://github.com/quinn-rs/quinn/issues/1469

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-19 19:46:43 +02:00
Jiahao XU 6d87394b2c Update `Cargo.lock`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-19 19:46:43 +02:00
Jiahao XU 26f2da0260 Use rustls for tls & trust-dns-resolver for dns resolution
By default, reqwest uses native-tls, which is openssl on linux and that
makes cross-compilation very hard as they need to compile openssl
themselves and exposes it via pkg-config.

Enabling vendored-openssl does not help there because the dep:openssl is
only enabled by dist-server.

reqwest by default uses libc's getaddrinfo, which is a poor solution
that requires a dedicated thread and it is not nearly as reliable as
trust-dns-resolver, not to mention libc implementation, e.g. musl, might
deliberately leave out some features.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-04-19 19:46:43 +02:00
dependabot[bot] 6bbef54b88 build(deps): bump once_cell from 1.17.0 to 1.17.1
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.17.0 to 1.17.1.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.0...v1.17.1)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 16:34:39 +02:00
dependabot[bot] 472b062932 build(deps): bump async-trait from 0.1.66 to 0.1.68
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.66 to 0.1.68.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.66...0.1.68)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 15:26:02 +02:00
Michał Sawicz (Saviq) 2a7db60048 snap: allow classic in snap review 2023-04-17 14:26:05 +02:00
Michał Sawicz (Saviq) 914de899fc snap: only do amd64
Other arches require untrusted actions.
2023-04-17 14:26:05 +02:00
Michał Sawicz (Saviq) cfd1b6e8b2 snap: fix description 2023-04-17 14:26:05 +02:00
Michał Sawicz 4f9c3f8e40 snap: refer to why some arches are broken
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-17 14:26:05 +02:00
Michał Sawicz (Saviq) 88e38af480 snap: drop the daemon
There's not really a point running a system-wide daemon of sccache. At
least not by default. `sccache` forks a local server if one isn't
running already, and does it as the current user. The server needs write
access to the compilation path, so a central server… doesn't work very
well.
2023-04-17 14:26:05 +02:00
Michał Sawicz (Saviq) f4696aa09a ci: add snap workflows 2023-04-17 14:26:05 +02:00
Michał Sawicz (Saviq) c54d01c70e snap: refresh snap for `base: core22` 2023-04-17 14:26:05 +02:00
dependabot[bot] 04a202938e build(deps): bump h2 from 0.3.15 to 0.3.17
Bumps [h2](https://github.com/hyperium/h2) from 0.3.15 to 0.3.17.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.15...v0.3.17)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 09:22:31 +02:00
Alexei Barnes 1267e9d424 Add test for response file with CR instead of CRLF 2023-04-13 14:41:00 +02:00
Alexei Barnes b0ff395052 Fix Sccache Cannot Parse Response File that uses Carriage Returns Only on Windows #1726 2023-04-13 14:41:00 +02:00
Sylvestre Ledru 0af46b1552 When failing on startup, give more debug information
Closes: #1717
2023-04-12 16:11:56 +02:00
dependabot[bot] 534f4e97c8 build(deps): bump chrono from 0.4.23 to 0.4.24
Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.23 to 0.4.24.
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.23...v0.4.24)

---
updated-dependencies:
- dependency-name: chrono
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 11:44:59 +02:00
dependabot[bot] c4d3ab2ff6 build(deps): bump serial_test from 1.0.0 to 2.0.0
Bumps [serial_test](https://github.com/palfrey/serial_test) from 1.0.0 to 2.0.0.
- [Release notes](https://github.com/palfrey/serial_test/releases)
- [Commits](https://github.com/palfrey/serial_test/compare/v1.0.0...v2.0.0)

---
updated-dependencies:
- dependency-name: serial_test
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 11:44:39 +02:00
Peng-Yu Chen a7d32c6bf0 Describe the default conf file locations in docs/Configuration.md 2023-04-06 11:38:39 +02:00
tottoto 2354d12785 Remove unnecessary import 2023-03-30 15:20:02 +02:00
tottoto a45064cbf2
Use scoped thread provided by standard library (#1703)
* Use scoped thread provided by standard library

* Fix unwrap and error mapping location
2023-03-30 17:27:06 +08:00
tottoto a2d1009477
Refactor import style (#1701)
* Refactor import style

* Fix missing import
2023-03-29 20:53:52 +08:00
tottoto 189ac6e6aa
Update rust-version in manifest to 1.64 (#1702) 2023-03-29 18:44:41 +08:00
tottoto da77709750
Replace atty with is-terminal (#1699) 2023-03-29 00:56:42 +08:00
dependabot[bot] 1ffc8922b1
build(deps): bump clap from 4.0.32 to 4.1.11 (#1698)
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.32 to 4.1.11.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.32...v4.1.11)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 17:27:58 +08:00
Erik Olof Gunnar Andersson fe99e64ca3
Remove Redis TTL (#1696)
* Remove Redis TTL

Prior to sccache 0.4.x there was no per key TTL applied to Redis. Long
term we probably want to make this configurable, but for now restoring
the initial behavior of letting Redis control when the keys expire.

* Removed unused duration
2023-03-28 11:40:42 +08:00
dependabot[bot] 9df846e993
build(deps): bump assert_cmd from 2.0.8 to 2.0.10 (#1669)
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd) from 2.0.8 to 2.0.10.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases)
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.8...v2.0.10)

---
updated-dependencies:
- dependency-name: assert_cmd
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 03:05:51 +08:00
dependabot[bot] b131b09334
build(deps): bump reqsign from 0.8.3 to 0.8.5 (#1692)
Bumps reqsign from 0.8.3 to 0.8.5.

---
updated-dependencies:
- dependency-name: reqsign
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 03:05:30 +08:00
dependabot[bot] 2c7dca00e9
build(deps): bump reqwest from 0.11.15 to 0.11.16 (#1691)
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.15 to 0.11.16.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.15...v0.11.16)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 02:59:08 +08:00
dependabot[bot] ce14088d32
build(deps): bump crossbeam-utils from 0.8.14 to 0.8.15 (#1693)
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) from 0.8.14 to 0.8.15.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.14...crossbeam-utils-0.8.15)

---
updated-dependencies:
- dependency-name: crossbeam-utils
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 02:58:53 +08:00