Skip to content

[Bug] package install fails when trying to rename the downloaded tmp files across different mount points #206

@diwu-sf

Description

@diwu-sf

pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> FsResult<()> {

Our tmp device is on a different physical volume (cloud EBS volume) vs the project folder.
This code here that's doing the fs::rename does not work when source and destination are on different mount points:
https://doc.rust-lang.org/std/fs/fn.rename.html
ErrorKind::CrossDeviceLink

Please make this fs function more robust fs::copy and fs::remove_file

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiscrepancydiscrepancy between the dbt Fusion Engine and dbt Corepackage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions