Skip to content

Commit d6d0645

Browse files
committed
Rust: Remove skip_path_resolution config variable (hardhoded to true).
1 parent fb7c3f3 commit d6d0645

File tree

4 files changed

+1
-13
lines changed

4 files changed

+1
-13
lines changed

rust/codeql-extractor.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ options:
8080
Collect flame graph data using the `tracing-flame` crate. To render a flame graph
8181
or chart, run the `inferno-flamegraph` command. See also: https://crates.io/crates/tracing-flame
8282
type: string
83-
skip_path_resolution:
84-
title: Skip path resolution
85-
description: >
86-
Skip path resolution. This is experimental, while we move path resolution from the extractor to the QL library.
87-
type: string
88-
pattern: "^(false|true)$"
8983
extract_dependencies_as_source:
9084
title: Extract dependencies as source code
9185
description: >

rust/extractor/src/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ pub struct Config {
6969
pub build_script_command: Vec<String>,
7070
pub extra_includes: Vec<PathBuf>,
7171
pub proc_macro_server: Option<PathBuf>,
72-
pub skip_path_resolution: bool,
7372
pub extract_dependencies_as_source: bool,
7473
pub force_library_mode: bool, // for testing purposes
7574
}

rust/extractor/src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,7 @@ fn main() -> anyhow::Result<()> {
283283
}
284284
let cwd = cwd()?;
285285
let (cargo_config, load_cargo_config) = cfg.to_cargo_config(&cwd);
286-
let resolve_paths = if cfg.skip_path_resolution {
287-
ResolvePaths::No
288-
} else {
289-
ResolvePaths::Yes
290-
};
286+
let resolve_paths = ResolvePaths::No;
291287
let (library_mode, library_resolve_paths) = if cfg.extract_dependencies_as_source {
292288
(SourceKind::Source, resolve_paths)
293289
} else {

rust/ql/test/extractor-tests/canonical_path_disabled/options.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)