Coder Social home page Coder Social logo

Comments (9)

miguelmota avatar miguelmota commented on May 17, 2024

@githorray does the same panic happen if you run cointop --no-cache?

from cointop.

githorray avatar githorray commented on May 17, 2024

No, cointop starts normally with that option.

from cointop.

miguelmota avatar miguelmota commented on May 17, 2024

Thanks for checking. I think it's because termux has a non-standard directory hierarchy: https://wiki.termux.com/wiki/Differences_from_Linux

Will implement a fix later this week.

from cointop.

githorray avatar githorray commented on May 17, 2024

Great.

I also tried cointop --cache-dir ~/.tmp. It sort of works, but cointop does not expand out the ~ to the current home directory and you end up getting a folder named ~. with the cache contents in the directory cointop was started from.

from cointop.

miguelmota avatar miguelmota commented on May 17, 2024

Interesting, does termux have the HOME env var set? you can check with echo $HOME

from cointop.

githorray avatar githorray commented on May 17, 2024
$ echo $HOME
/data/data/com.termux/files/home

from cointop.

miguelmota avatar miguelmota commented on May 17, 2024

@githorray changes made:

  • soft fail (don't panic) if there is cache dir error. Proceed without cache.
  • store cache dir preference in config file. Preference set with --cache-dir flag will write it to config.
  • You can also edit config directly to add or modify preference:
    cache_dir = "/tmp"

I tried it out on termux with the following:

pkg install git -y
pkg install golang -y
go get github.com/miguelmota/cointop
cd ~/go/src/github.com/miguelmota/cointop
go run cmd/cointop/cointop.go

from cointop.

githorray avatar githorray commented on May 17, 2024

working great. thanks.

from cointop.

miguelmota avatar miguelmota commented on May 17, 2024

Closed by 890e1c5

from cointop.

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.