Skip to content

Commit c9a15bd

Browse files
jketemaCopilot
andcommitted
Go: Clarify registry proxy certificate handling
Document the proxy certificate behavior without referring to the previous global Git configuration, and add a Go extractor change note. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 parents  commit c9a15bd

60,206 files changed

Lines changed: 7046653 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.bazelrc‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
common --enable_platform_specific_config
2+
# because we use --override_module with `%workspace%`, the lock file is not stable
3+
common --lockfile_mode=off
4+
5+
# Build release binaries by default, can be overwritten to in local.bazelrc and set to `fastbuild` or `dbg`
6+
build --compilation_mode opt
7+
8+
# when building from this repository in isolation, the internal repository will not be found at ..
9+
# where `MODULE.bazel` looks for it. The following will get us past the module loading phase, so
10+
# that we can build things that do not rely on that
11+
common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
12+
13+
build --repo_env=CC=clang --repo_env=CXX=clang++
14+
# The standalone Linux toolchain uses gold, which does not support the
15+
# LLD-specific -z nostart-stop-gc workaround enabled by rules_swift.
16+
build:linux --features=-swift.lld_gc_workaround
17+
# Disable Android SDK auto-detection (we don't use it, and rules_android has Bazel 9 compatibility issues)
18+
build --repo_env=ANDROID_HOME=
19+
20+
# print test output, like sembuild does.
21+
# Set to `errors` if this is too verbose.
22+
test --test_output all
23+
# we use transitions that break builds of `...`, so for `test` to work with that we need the following
24+
test --build_tests_only
25+
26+
# this requires developer mode, but is required to have pack installer functioning
27+
startup --windows_enable_symlinks
28+
common --enable_runfiles
29+
30+
# with the above, we can avoid building python zips which is the default on windows as that's expensive
31+
build --nobuild_python_zip
32+
33+
common --registry=file:///%workspace%/misc/bazel/registry
34+
common --registry=https://bcr.bazel.build
35+
36+
common --@rules_dotnet//dotnet/settings:strict_deps=false
37+
38+
# we only configure a nightly toolchain
39+
common --@rules_rust//rust/toolchain/channel=nightly
40+
41+
# Reduce this eventually to empty, once we've fixed all our usages of java, and https://github.com/bazel-contrib/rules_go/issues/4193 is fixed
42+
common --incompatible_autoload_externally="+@rules_cc,+@rules_java,+@rules_shell"
43+
44+
build --java_language_version=17
45+
build --tool_java_language_version=17
46+
build --tool_java_runtime_version=remotejdk_17
47+
build --java_runtime_version=remotejdk_17
48+
build --@rules_python//python/config_settings:python_version=3.12
49+
50+
try-import %workspace%/local.bazelrc

‎.bazelrc.internal‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# this file should contain bazel settings required to build things from `semmle-code`
2+
3+
common --registry=file:///%workspace%/ql/misc/bazel/registry
4+
common --registry=https://bcr.bazel.build
5+
6+
# See bazelbuild/rules_dotnet#413: strict_deps in C# also appliy to 3rd-party deps, and when we pull
7+
# in (for example) the xunit package, there's no code in this at all, it just depends transitively on
8+
# its implementation packages without providing any code itself.
9+
# We either can depend on internal implementation details, or turn of strict deps.
10+
common --@rules_dotnet//dotnet/settings:strict_deps=false
11+
12+
build --@rules_python//python/config_settings:python_version=3.12

‎.bazelversion‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9.0.0

‎.clang-format‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DisableFormat: true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
2+
3+
USER root
4+
# Install needed packages according to https://codeql.github.com/docs/codeql-overview/system-requirements/
5+
# most come from the base image, but we need to install some additional ones
6+
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y sudo man-db python3.12 npm unminimize
7+
RUN yes | unminimize

‎.devcontainer/devcontainer.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extensions": [
3+
"rust-lang.rust-analyzer",
4+
"bungcip.better-toml",
5+
"github.vscode-codeql",
6+
"hbenl.vscode-test-explorer",
7+
"ms-vscode.test-adapter-converter",
8+
"slevesque.vscode-zipexplorer"
9+
],
10+
"build": {
11+
// Path is relative to the devcontainer.json file.
12+
"dockerfile": "Dockerfile.codespaces"
13+
},
14+
"settings": {
15+
"files.watcherExclude": {
16+
"**/target/**": true
17+
},
18+
"codeQL.runningQueries.memory": 2048
19+
}
20+
}

‎.editorconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*]
2+
end_of_line = lf

‎.git-blame-ignore-revs‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# .git-blame-ignore-revs
2+
# Auto-formatted Java
3+
730eae952139209fe9fdf598541d608f4c0c0c84
4+
# Auto-formatted C#
5+
5ad7ed49dd3de03ec6dcfcb6848758a6a987e11c
6+
# Auto-formatted C/C++
7+
ef97e539ec1971494d4bba5cafe82e00bc8217ac
8+
# Auto-formatted Python
9+
21d5fa836b3a7d020ba45e8b8168b145a9772131
10+
# Auto-formatted JavaScript
11+
8d97fe9ed327a9546ff2eaf515cf0f5214deddd9
12+
# Auto-formatted Ruby
13+
a5d229903d2f12d45f2c2c38822f1d0e7504ae7f
14+
# Auto-formatted Go
15+
08c658e66bf867090033ea096e244a93d46c0aa7
16+
# Auto-formatted Swift
17+
711d7057f79fb7d72fc3b35e010bd018f9009169
18+
# Auto-formatted shared ql packs
19+
3640b6d3a8ce9edf8e1d3ed106fe8526cf255bc0
20+
# Auto-formatted taint tracking files
21+
159d8e978c51959b380838c080d891b66e763b19

‎.gitattributes‎

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Text files will be normalized to LF line endings in the Git database, and will keep those LF line
2+
# endings in the working tree even on Windows. If you make changes below, you should renormalize the
3+
# affected files by running the following from the root of this repo (requires Git 2.16 or greater):
4+
#
5+
# git add --renormalize .
6+
# git status [just to show what files were renormalized]
7+
# git commit -m "Normalize line endings"
8+
9+
# Anything Git auto-detects as text gets normalized and checked out as LF
10+
* text=auto eol=lf
11+
12+
# Explicitly set a bunch of known extensions to text, in case auto detection gets confused.
13+
*.ql text
14+
*.qll text
15+
*.qlref text
16+
*.dbscheme text
17+
*.qhelp text
18+
*.html text
19+
*.htm text
20+
*.xhtml text
21+
*.xhtm text
22+
*.js text
23+
*.mjs text
24+
*.ts text
25+
*.json text
26+
*.yml text
27+
*.yaml text
28+
*.c text
29+
*.cpp text
30+
*.h text
31+
*.hpp text
32+
*.md text
33+
*.stats text
34+
*.xml text
35+
*.sh text
36+
*.pl text
37+
*.java text
38+
*.cs text
39+
*.py text
40+
*.lua text
41+
*.expected text
42+
*.go text
43+
44+
# Explicitly set a bunch of known extensions to binary, because Git < 2.10 will treat
45+
# `* text=auto eol=lf` as `* text eol=lf`
46+
*.png -text
47+
*.jpg -text
48+
*.jpeg -text
49+
*.gif -text
50+
*.dll -text
51+
*.pdb -text
52+
53+
/java/ql/test/stubs/**/*.java linguist-generated=true
54+
/java/ql/test/experimental/stubs/**/*.java linguist-generated=true
55+
/java/kotlin-extractor/deps/*.jar filter=lfs diff=lfs merge=lfs -text
56+
57+
# Force git not to modify line endings for go or html files under the go/ql directory
58+
/go/ql/**/*.go -text
59+
/go/ql/**/*.html -text
60+
# Force git not to modify line endings for go dbschemes
61+
/go/*.dbscheme -text
62+
# Preserve unusual line ending from codeql-go merge
63+
/go/extractor/opencsv/CSVReader.java -text
64+
65+
# For some languages, upgrade script testing references really old dbscheme
66+
# files from legacy upgrades that have CRLF line endings. Since upgrade
67+
# resolution relies on object hashes, we must suppress line ending conversion
68+
# for those testing dbscheme files.
69+
/*/ql/lib/upgrades/initial/*.dbscheme -text
70+
71+
# Auto-generated modeling for Python
72+
/python/ql/lib/semmle/python/frameworks/data/internal/subclass-capture/*.yml linguist-generated=true
73+
74+
# auto-generated bazel lock file
75+
/ruby/extractor/cargo-bazel-lock.json linguist-generated=true
76+
/ruby/extractor/cargo-bazel-lock.json -merge
77+
78+
# GitHub Agentic Workflows compiled output
79+
.github/workflows/*.lock.yml linguist-generated=true
80+
81+
# auto-generated files for the C# build
82+
/csharp/paket.lock linguist-generated=true
83+
# needs eol=crlf, as `paket` touches this file and saves it as crlf
84+
/csharp/.paket/Paket.Restore.targets linguist-generated=true eol=crlf
85+
/csharp/paket.main.bzl linguist-generated=true
86+
/csharp/paket.main_extension.bzl linguist-generated=true
87+
88+
# swift prebuilt resources
89+
/swift/third_party/resources/*.zip filter=lfs diff=lfs merge=lfs -text
90+
/swift/third_party/resources/*.tar.zst filter=lfs diff=lfs merge=lfs -text
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: General issue
3+
about: Tell us if you think something is wrong or if you have a question
4+
title: General issue
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
**Description of the issue**
11+
12+
<!-- Please explain briefly what is the problem.
13+
If it is about a GitHub project, please include its URL. -->
14+

0 commit comments

Comments
 (0)