pear_packagefilemanager_git's Introduction
The Git list plugin generator for both PEAR_PackageFileManager, and PEAR_PackageFileManager2 classes. It supports standard .gitignore and .git/info/exclude file format dir/to/exclude/* # to exclude whole directory from list !dir/to/exclude/important_file # to include the important_file in the list To build: $ pear package To install: $ pear channel-discover pear.vardump.org $ pear install vd/PEAR_PackageFileManager_Git
pear_packagefilemanager_git's People
pear_packagefilemanager_git's Issues
Invalid package.xml
clockwerx@clockwerx-desktop:~/PEAR_PackageFileManager_Git$ pear package
Error: Unknown channel "tpspkgs.vardump.org"
Parsing of package.xml from file "package.xml" failed
Cannot package, errors in package file
Unfortunately, a pear channel discover doesn't get me to the right spot.
Get file list from `git ls-files` ?
What do you think about getting the file list from git ls-files
instead of having PEAR build a file list on its own? This would eliminate the need to parse .gitignore-- and it only includes files that are actually a part of the repo (a combination of staged additions and what's currently committed). If this sounds like something you'd like, I'd be happy to make a pull request (if not, I'll probably make a new module, maybe PEAR_PackageFileManager_GitRepoOnly or something).
Pear load broken
Hello.
According to http://pear.php.net/rest/c/PEAR/packagesinfo.xml fresh releases of PEAR_PackageFileManager_Plugins depends on PEAR_PackageFileManager_Git and it cannot be load via Composer.
<deps><v>1.0.3</v><d>a:2:{s:8:"required";a:3:{s:3:"php";a:1:{s:3:"min";s:5:"5.3.0";}s:13:"pearinstaller";a:1:{s:3:"min";s:6:"1.10.1";}s:7:"package";a:2:{i:0;a:3:{s:4:"name";s:14:"XML_Serializer";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:6:"0.19.0";}i:1;a:3:{s:4:"name";s:27:"PEAR_PackageFileManager_Git";s:3:"uri";s:16:"pear.vardump.org";s:9:"conflicts";s:0:"";}}}s:8:"optional";a:1:{s:9:"extension";a:1:{s:4:"name";s:9:"simplexml";}}}</d></deps>
<deps><v>1.0.4</v><d>a:2:{s:8:"required";a:3:{s:3:"php";a:1:{s:3:"min";s:5:"5.3.0";}s:13:"pearinstaller";a:1:{s:3:"min";s:6:"1.10.1";}s:7:"package";a:2:{i:0;a:3:{s:4:"name";s:14:"XML_Serializer";s:7:"channel";s:12:"pear.php.net";s:3:"min";s:6:"0.19.0";}i:1;a:3:{s:4:"name";s:27:"PEAR_PackageFileManager_Git";s:3:"uri";s:16:"pear.vardump.org";s:9:"conflicts";s:0:"";}}}s:8:"optional";a:1:{s:9:"extension";a:1:{s:4:"name";s:9:"simplexml";}}}</d></deps>
composer.json contains:
{
"name": "farpost/baza",
"description": "farpost baza",
"repositories": [
{
"type": "pear",
"url": "http://pear.php.net"
}
],
"require": {
"php": ">=5.3.2",
"pear-pear.php.net/Net_URL2": "2.2.*"
}
}
Composer update result:
fedorenko@vm ~/baza $ sudo composer update
Loading composer repositories with package information
Initializing PEAR repository http://pear.php.net
PEAR repository from http://pear.php.net could not be loaded. Undefined index: channel
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package pear-pear.php.net/net_url2 could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Can you please check out this issue?
Warning with non existance .gitignore
Warning: file_get_contents(/home/clockwerx/pearweb-stable/.gitignore): failed to open stream: No such file or directory in /usr/share/php/PEAR/PackageFileManager/Git.php on line 46
... but I haven't actually got a .gitignore file. A simple file_exists() check could help
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.