Giter VIP home page Giter VIP logo

Comments (6)

piotr-cz avatar piotr-cz commented on May 30, 2024

I don't know if it is related, but I noticed that Bowerphp on my machine with windows is saving cache in folder D:/.cache/bowerphp (I'm running it on D drive). I'd prefer if system temporary dir was used, like in Composer, Doctrine, etc. The later one is using sys_get_temp_dir function.

See https://github.com/Bee-Lab/bowerphp/blob/master/src/Bowerphp/Config/Config.php#L41

from bowerphp.

garak avatar garak commented on May 30, 2024

@piotr-cz unfortunately windows systems are not available to any current developer of this project. Looks like composer is using getenv('APPDATA'), can you tell me where you composer cache is located?

from bowerphp.

piotr-cz avatar piotr-cz commented on May 30, 2024

getenv('APPDATA') evaluates on my system to C:\Users\piotr\AppData\Roaming and composer uses own subfolder here for storing vendor libraries that are installed globally.

MSDN specifies the roaming folder as

Windows uses the Roaming folder for application specific data, such as custom dictionaries, which are machine independent and should roam with the user profile.

getenv('LOCALAPPDATA') evaluates to C:\Users\piotr\AppData\Local, this is where composer stores cached files repos.,

sys_get_temp_dir() evaluates to C:\users\piotr\AppData\Local\Temp which is windows the garbage. User can easily delete it's contents using system clean tool.

from bowerphp.

piotr-cz avatar piotr-cz commented on May 30, 2024

at this moment cache assets are saved on C:\Users\[username]\.cache\bowerphp.
thanks, this is better

from bowerphp.

piotrooo avatar piotrooo commented on May 30, 2024

@garak how you think it should be implemented?

My proposition is should look like is in bower.

bower
├── packages
│   ├── 76825ba06db421bbfbda0853e440b3f5
│   │   └── 3.0.0
│   └── fe2fe255e91d251051d543998aa8327a
│       ├── 1.10.0
│       ├── 2.1.1
│       └── 2.1.1-rc2
└── registry

I read bower code and hashes are generated from repo url eg. git://github.com/twbs/bootstrap.git by the md5 function - we can do this in the same way.

Or maybe we should use bower cached files?

from bowerphp.

garak avatar garak commented on May 30, 2024

Now that Bowerphp is not relying on raw Guzzle anymore, we can use github-api cache.

from bowerphp.

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.