Git Product home page Git Product logo

Comments (5)

hiqua avatar hiqua commented on June 18, 2024

You seem to be using Windows, correct? $PWD or $(pwd) are supposed to return the current working directory, but if you already type it fully (C:\ ...) you should not need it. The issue seems to be how to mount a directory with docker with Windows, have you already done that successfully in the past?

I just managed to run the image from dockerhub successfully using -v, so this shouldn't be the issue.

from securify.

hiqua avatar hiqua commented on June 18, 2024

Closing because of inactivity, please reopen with more details if the issue is still there!

from securify.

Ghagini avatar Ghagini commented on June 18, 2024

I have the same issue.
I use the Ubuntu 18.10, Docker version is 18.09.2,
When I type "docker run securify" I can get the report of the /project/example.sol.
But when I try the command "docker run -v $(pwd)/:/mysol.sol securify" it still reports the result of /project/example.sol.
Could you tell me the command I could type to scan my solidity file?

from securify.

hiqua avatar hiqua commented on June 18, 2024

You need to put your file in a folder and mount this folder, rather than the file itself. Let me know if that works!

from securify.

Ghagini avatar Ghagini commented on June 18, 2024

I tried to put mysol in a folder but the command doesn't work either.But I can scan mysol by change the command in Dockerfile.
I have a new question is that can the securify find out the timestamp-dependency in solidity files? Because I scan the test file "random_number_generator.sol" in
securify-master\src\test\resources\solidity\end_to_end_testing_big\swc\weak_randomness,
the securify reports neither Violation nor Warning.

from securify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.