Comments (13)
@ancarda we take some data from packagist and others from github and combine them to make badges.
To solve the problem you say, such as packages present on GitLab or Bitbucket, we simply add integration to other possible sources as fallback.
For example we currently support packages on github and bitbucket.
If you want to add support for SourceHut too (if they make bees available), your PR is welcome! ;)
from badge-poser.
Another benefit of free software is I never risk misspelling "proprietary"! 😂 Which for some reason is a word I struggle to spell properly all the time.
from badge-poser.
Haven't seen code this clean and readable for some time! It'll be easy to add support for SourceHut.
Though, I can't shake the feeling that adding support for specific hosting providers isn't the right thing to do. Ideally someone who self-hosts SourceHut, Gitea, GitLab, and so on should be able to use tools like Poser too.
It's difficult to fix this, but I posted an idea for a possible way to bridge the gap. Either way, leave this with me -- I'll add support for SourceHut one way or the other.
from badge-poser.
This still seems to be an issue with code hosted on gitlab.
I could understand that some badges don't work with other services than github. But the latest version, and espechially the download numbers are plainly taken from packagist and should at least work independent from the service hosting the public repo.
I'll see to find a way around that. Expect a PR at one point ;-)
from badge-poser.
Absolutely! The for me annoying point is that the Repo-CLient (Github/Bitbucket/Gitlab et al) is only relevant for the composer.lock and the gitattributes badge. All others could live without that but still require it...
I might start with separating that 😉
from badge-poser.
SourceHut is not supported at the moment by our libraries to retrieve data from the repository.
from badge-poser.
@AlessandroMinoccheri exactly!
@ancarda we're sorry! Curiosity, why did you decide to migrate your sources?
from badge-poser.
SourceHut is not supported at the moment by our libraries to retrieve data from the repository
I'm a bit confused by this, doesn't Poser pull statistics from Packagist? In that sense, shouldn't it be completely agnostic?
If not, how does Poser handle self-hosted instances of, e.g. GitLab?
why did you decide to migrate your sources?
I've been unhappy with GitHub for some time. Sadly, many of the popular replacements - GitLab and Gitea - were essentially aiming to be a clone of GitHub. While they do solve the issue with propitiatory proprietary software, they don't do much to fix the other issues with GitHub's design.
I eventually came across SourceHut; which far better resembles the sort of computing I desire - lightweight, fast, as little lock-in as possible, 100% free software, no requirement to use JavaScript, based around email so you don't have to have an account, etc... I'm really quite happy on SourceHut. It's like using Craigslist or old.reddit.com; brutal, harsh design - but it really works and boy is it fast.
I left GitHub mirrors up to not break any URLs to my existing projects. So, I imagine I might cause fewer problems with brand new projects. Moving psr7-string-stream kinda broke Packagist too! 😂
from badge-poser.
@heiglandreas have you already started doing the PR?
I can try to work on GitLab client for missed badges.
from badge-poser.
I was just going to start to check what's going on 😁
Had to fix some other issues first. So feel free to go ahead. Though I would have approached the whole issue to check where individual access would be necessary in the first place and tried to make it as independent as possible so that different clients might not be necessary any more...
But perhaps we can tackle the issue from two sides 😉 So feel free to go for the GitLab client!
from badge-poser.
It makes sense for me, I try to work with the GitLab client and the next step could be yours about being independent for clients if it's possible 😁
from badge-poser.
@heiglandreas do you have an example of a public repository on GitLab and packagist to test?
from badge-poser.
Nothing easier than that 😉
https://packagist.org/packages/stella-maris/clock
from badge-poser.
Related Issues (20)
- Upgrade to Symfony 6.4 (or maybe 7.0) HOT 1
- "Client::AUTH_HTTP_TOKEN" authentication method is deprecated HOT 2
- Improve rendering on small screens (mobile)
- Copy all badges uses the phpunit/phpunit urls HOT 4
- Badge shows very old download count HOT 15
- Badge shows very old stable release HOT 2
- [UX] reduce headlines and buttons in the mobile version?
- Add php version badge (and maybe other dependencies) HOT 1
- Add a way for different styled badges HOT 17
- Description can be empty HOT 1
- Removing parameters from services adding dictionaries HOT 1
- What data privacy/retention policies apply to badge requests from poser.pugx.org?
- Wrong badges in this repo
- HTTP protocol used while displaying badges in homepage
- CirceCI integration is not working
- ErrorException: Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated HOT 1
- TypeError: App\Controller\SnippetController::isValidRepositoryName(): Argument #1 ($repository) must be of t...
- Error: Call to a member function getTotal() on null
- Migrate providers in tests
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 badge-poser.