Comments (6)
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.
@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.
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.
at this moment cache assets are saved on C:\Users\[username]\.cache\bowerphp
.
thanks, this is better
from bowerphp.
@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.
Now that Bowerphp is not relying on raw Guzzle anymore, we can use github-api cache.
from bowerphp.
Related Issues (20)
- Unable to download Dependency HOT 1
- Private Repository HOT 1
- lock file HOT 1
- Getting 404's on all packages for install and update HOT 2
- self-update option HOT 1
- "Not found", the come back HOT 10
- support gitlab
- support "hash" alias
- custom composer vendor dir HOT 1
- Question: Shell_execute PHP function vs BowerPHP HOT 1
- Why bower don't have rate limit, but bowerphp does? HOT 3
- [Release] Website has 0.5 release phar, but github and packagist don't HOT 3
- The bowerphp.org domain seems to be expired HOT 7
- RuntimeException - Could not find .../Guzzle/Http/Resources/cacert.pem HOT 2
- Add a composer script HOT 4
- Why does Bowerphp require symfony? HOT 4
- Trying to install cycle js HOT 7
- how to move it in your $PATH (e.g. /usr/local/bin) HOT 3
- Update Registry HOT 1
- Update to knplabs/github-api version 2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bowerphp.