We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a373426 commit 8de8f2bCopy full SHA for 8de8f2b
rust/runfiles/runfiles.rs
@@ -158,7 +158,12 @@ impl Runfiles {
158
let mode = if let Some(manifest_file) = std::env::var_os(MANIFEST_FILE_ENV_VAR) {
159
Self::create_manifest_based(Path::new(&manifest_file))?
160
} else {
161
- Mode::DirectoryBased(find_runfiles_dir()?)
+ let dir = find_runfiles_dir()?;
162
+ let manifest_path = dir.join("MANIFEST");
163
+ match manifest_path.exists() {
164
+ true => Self::create_manifest_based(&manifest_path)?,
165
+ false => Mode::DirectoryBased(dir),
166
+ }
167
};
168
169
let repo_mapping = raw_rlocation(&mode, "_repo_mapping")
0 commit comments