Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move-cli run的时候文件名存在过长超过os限制导致失败 #2868

Open
reilost opened this issue Sep 13, 2021 · 0 comments
Open

move-cli run的时候文件名存在过长超过os限制导致失败 #2868

reilost opened this issue Sep 13, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@reilost
Copy link

reilost commented Sep 13, 2021

当前的实现逻辑是把resource下载后保存起来,文件命名有可能过长,执行的时候会报错

Error: File name too long (os error 63)

执行命令分别为

move check --mode starcoin --starcoin-rpc https://barnard-seed.starcoin.org
move run src/RateDebug.move --mode starcoin --starcoin-rpc https://barnard-seed.starcoin.org --signers 0x56f8fbdb731c5803d8c1cd40b3be41e2 --block-number 806109

示例文件如下

script {
    use 0x1::STC::{STC};
    use 0x164fbb953f822fbba95d582b1794687c::Market;
    use 0x164fbb953f822fbba95d582b1794687c::Management::{StandardPosition};

    fun main(sender: signer) {
        Market::deposit<StandardPosition, STC>(&sender, 5, 1000000000);
    }
}

看起来应该是下载的resource文件名过长,当前的文件名举例
0x164fbb953f822fbba95d582b1794687c::Treasury::Position<0x164fbb953f822fbba95d582b1794687c::Management::StandardPosition,0x164fbb953f822fbba95d582b1794687c::MUSDT::MUSDT>.bcs

@nanne007 nanne007 added the bug Something isn't working label Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants