Óscar San José
faa2dcee24
test GITHUB_TOKEN non-emptyness before using it in auth headers
2024-05-14 11:18:18 +02:00
Óscar San José
5b572a2c2a
make GITHUB_TOKEN in lfs_probe a fallback rather than an override
2024-05-14 10:24:02 +02:00
Paolo Tranquilli
9f27eb3eda
Bazel: make git_lfs_probe.py compatible with python 3.8
2024-05-07 12:44:28 +02:00
Paolo Tranquilli
239b6d8c8e
Merge branch 'main' into redsun82/kotlin
2024-05-06 17:24:53 +02:00
Paolo Tranquilli
d85f81d699
Merge pull request #16435 from github/redsun82/buildifier
...
Bazel: move buildifier out of root `BUILD`
2024-05-06 16:41:25 +02:00
Paolo Tranquilli
92b3eda12d
Bazel: move buildifier out of root BUILD
...
See https://github.com/github/codeql/pull/16428 for details as to why
this is necessary.
2024-05-06 16:00:05 +02:00
Paolo Tranquilli
54c9aea251
Bazel: fix lfs lazy rule when all objects are local
2024-05-06 15:47:43 +02:00
Paolo Tranquilli
6cbe16e0c2
Bazel: add progress reporting
2024-05-03 12:00:15 +02:00
Paolo Tranquilli
ecdf62376d
Bazel: clean up git_lfs_probe.py
2024-05-03 09:21:57 +02:00
Paolo Tranquilli
daea674095
Bazel: cover standard https git credentials in git_lfs_probe.py
2024-05-02 18:02:22 +02:00
Paolo Tranquilli
9157dee0db
Bazel: integrate download_and_extract into lfs_smudge
2024-05-02 08:53:51 +02:00
Paolo Tranquilli
677520aa8e
Bazel: improved lazy lfs files
...
This reintroduces lazy lfs file rules that were removed in
https://github.com/github/codeql/pull/16117 , now improved.
The new rules will make the actual file download go through bazel's
download manager, which includes:
* caching into the repository cache
* sane limiting of concurrent downloads
* retries
The bulk of the work is done by `git_lfs_probe.py`, which will use the
LFS protocol (with authentication via SSH) to output short lived
download URLs that can be consumed by `repository_ctx.download`.
2024-05-02 06:38:26 +02:00
Paolo Tranquilli
52a015fb11
Bazel: remove further unneeded files
2024-04-30 09:07:11 +02:00
Paolo Tranquilli
a28f87fff0
Bazel: add empty registry override
...
This will unblock work in parallel on two separate PRs that require
patching different modules.
2024-04-29 18:01:09 +02:00
Paolo Tranquilli
450f6518e2
Bazel: remove generic lazy lfs files
2024-04-29 17:26:48 +02:00
Paolo Tranquilli
c5f6c65ff1
Merge branch 'main' into redsun82/kotlin
2024-04-16 18:23:33 +02:00
Cornelius Riemenschneider
6ba27dc863
Upgrade rules_pkg to 0.10.1.
2024-04-16 16:29:56 +02:00
Paolo Tranquilli
aee3c0d249
Add license and notice information to patched registry
2024-04-16 12:33:00 +02:00
Paolo Tranquilli
35a2ed87b6
Bazel/Kotlin: patch jdep emission
2024-04-10 15:29:44 +02:00
Paolo Tranquilli
a15681a181
Bazel: ease update of local registry
2024-04-10 13:22:18 +02:00
Paolo Tranquilli
5bdd724221
Bazel: move patching of rules_kotlin to a registry override
2024-04-10 13:22:18 +02:00
Paolo Tranquilli
4a4bd16eab
Java/Kotlin: prepare for internal bazel packaging
2024-04-09 13:27:27 +02:00
Paolo Tranquilli
b71ffc658b
Bazel: properly fix lfs smudge script
2024-04-08 15:22:54 +02:00
Paolo Tranquilli
60febcdf1e
Revert "Bazel: fix lfs to do checkout rather than smudging"
...
This reverts commit fd77f1a7cb .
2024-04-08 14:54:15 +02:00
Paolo Tranquilli
fd77f1a7cb
Bazel: fix lfs to do checkout rather than smudging
...
On Windows `git lfs smudge` was not working as expected.
2024-04-08 10:57:24 +02:00
Paolo Tranquilli
38a7bc0580
Bazel: optimize LFS to use symlinks when the file is not an LFS pointer
2024-04-08 09:26:19 +02:00
Paolo Tranquilli
c242466d31
Kotlin: first support for Kotlin extractor build
2024-04-03 16:30:57 +02:00
Paolo Tranquilli
0da4130bb9
Bazel: add LFS rules
2024-04-03 08:35:19 +02:00
Paolo Tranquilli
0a137c7b02
Bazel/Cmake: share build options
2024-02-29 15:35:21 +01:00
Paolo Tranquilli
81facd2fd6
Merge branch 'main' into redsun82/bazel-cmake
2024-02-29 14:28:00 +01:00
Paolo Tranquilli
b7df26e6c9
Bazel: make codeql compatible with workspace setup
2024-02-22 15:50:02 +01:00
Paolo Tranquilli
61bfe7e520
Bazel: rename internal module to semmle_code
2024-02-21 16:51:39 +01:00
Paolo Tranquilli
c0eeb7a34e
Bazel: reference (and locally stub) internal module
2024-02-12 15:58:43 +01:00
Paolo Tranquilli
19bb8fe22d
Bazel: use bzlmod
2024-02-12 10:55:40 +01:00
Paolo Tranquilli
b105d0cf9a
Bazel/CMake: be more lenient with aquery
...
It turns out `bazel aquery` is not so well behaved on Windows, so we
need to accept that it reports errors and exits with an error.
2024-02-07 16:25:54 +01:00
Paolo Tranquilli
9cfef6e42f
Bazel/CMake: auto detect all cc_binary/cc_test targets
2024-02-07 11:11:30 +01:00
Paolo Tranquilli
b93d108400
Bazel/CMake: drop confusing _INTERNAL_TRANSITION suffix
2024-01-10 12:00:40 +01:00
Cornelius Riemenschneider
b0599edb7e
Bazel: Bump dependant rules versions.
...
This doesn't bump rules_python, as there's some incompatible changes in that
which will need further addressing.
2024-01-08 11:21:02 +01:00
Paolo Tranquilli
819fc52854
Bazel/CMake: use bazelisk to use correct bazel version
2023-12-13 15:32:06 +01:00
Paolo Tranquilli
9a4b56162e
Bazel/CMake: small compatibility fix
2023-11-16 17:16:14 +01:00
Paolo Tranquilli
615a128770
Bazel/CMake: support new internal transition rules
2023-11-16 09:04:58 +01:00
Paolo Tranquilli
ef804c018d
C++: make cmake generation work with internal rule cc_binary_add_features
2023-08-14 17:32:03 +02:00
Alex Denisov
d744b218f6
Misc: add bazel buildifer pre-commit hook
2023-06-30 13:07:04 +02:00
Paolo Tranquilli
be9d32a6c1
Bazel/CMake: make include not use cmake include
...
...but rather just pass along targets. This is required to fix CMake
generation in the internal repository.
2023-06-05 11:43:48 +02:00
Paolo Tranquilli
400176f677
Swift: fix cmake generation
...
The bazel -> cmake generator is currently not capable of handling
separate included generated cmake files making use of common C/C++
dependencies.
To work around this limitation, a single generated cmake is now in
place. Long-term, we should either:
* make the cmake generator handle common dependencies gracefully, or
* make the cmake generation aspect travel up `pkg_` rules `srcs`
attributes
so to avoid having to list the targets to be generated in the top-level
`BUILD` file.
Other things fixed:
* removed some warning spam about redefined `BAZEL_CURRENT_REPOSITORY`
* fixed the final link step, that was failing because `libswiftCore.so`
was not being linked.
2023-06-05 11:12:11 +02:00
Paolo Tranquilli
c7c12a7108
Swift: add json and date dependencies
2023-05-03 14:32:30 +02:00
Alexandre Boulgakov
36d34f199b
Bazel: Add Abseil C++ dependency.
2023-04-24 21:59:57 +01:00
Paolo Tranquilli
cdd4e8021b
Move swift/codegen to misc/codegen
2023-02-27 09:46:48 +01:00
Paolo Tranquilli
219ed64b74
Swift: reorganize bazel third party dependencies
2022-12-08 16:10:25 +01:00
Alex Denisov
0bfe502bb0
Swift: remove patches from the extractor
...
Moved elsewhere https://github.com/dsp-testing/codeql-swift-artifacts/pull/3
2022-11-30 15:36:09 +01:00