Skip to content

Commit d10f797

Browse files
committed
feat: use full URL for embedded script paths
Signed-off-by: Rustin170506 <techregister@pm.me>
1 parent 0c2bb4e commit d10f797

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cargo/core/workspace.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,10 @@ impl<'gctx> Packages<'gctx> {
18001800
match self.packages.entry(key.to_path_buf()) {
18011801
Entry::Occupied(e) => Ok(e.into_mut()),
18021802
Entry::Vacant(v) => {
1803-
let source_id = SourceId::for_path(key)?;
1803+
let source_id = match crate::util::toml::is_embedded(manifest_path) {
1804+
true => SourceId::for_path(manifest_path)?,
1805+
false => SourceId::for_path(key)?,
1806+
};
18041807
let manifest = read_manifest(manifest_path, source_id, self.gctx)?;
18051808
Ok(v.insert(match manifest {
18061809
EitherManifest::Real(manifest) => {

0 commit comments

Comments
 (0)