path: root/posts/packagist_own_git_server.md
diff options
authorFran├žois Kooman <fkooman@tuxed.net>2018-06-02 20:01:08 +0200
committerFran├žois Kooman <fkooman@tuxed.net>2018-06-02 20:01:08 +0200
commite01075898304997b7f9d3a83954b9ac7876d65e4 (patch)
tree82940d9c1cd7da299bced84e4d43d532fe29fdf3 /posts/packagist_own_git_server.md
parent07b2cb40b8205c74ea6b1b64e982a23af023bf3b (diff)
update post
Diffstat (limited to 'posts/packagist_own_git_server.md')
1 files changed, 43 insertions, 0 deletions
diff --git a/posts/packagist_own_git_server.md b/posts/packagist_own_git_server.md
index 447c72d..5525d31 100644
--- a/posts/packagist_own_git_server.md
+++ b/posts/packagist_own_git_server.md
@@ -1,6 +1,7 @@
title: Packagist with your own Git Server
published: 2018-05-29
+modified: 2016-06-02
The [Packagist](https://packagist.org/) service is used to make it possible to
@@ -71,3 +72,45 @@ Make sure the file is executable:
You can actually run it directly to test it, otherwise it will be triggered
when you push to your Git server.
+**Update (2018-06-02)**: there are a couple of more things to keep in mind. One
+is that you need add a `source` key under `support` in `composer.json`,
+otherwise the "Source" link on Packagist will keep pointing to GitHub:
+ "support": {
+ "email": "fkooman@tuxed.net",
+ "source": "https://git.tuxed.net/fkooman/php-yubitwee"
+ },
+There is another problem with checking for updated tags. It seems Packagist
+won't find the new tags when committing a new tag to the repository. This
+could be due to cgit caching... At the moment I have no idea how to properly
+investigate this...
+In addition, you MUST push a new (tagged) release before Composer will retrieve
+the code from your new repository location in case you moved your repository.
+The older version(s) will keep being pulled in from the old location, even if
+they are no longer available there, thus breaking Composer if it depend on your
+code. Not great.
+All in all, it may not be the worst idea to not use Packagist at all for your
+packages, and instead just specify the repository directly in the
+`composer.json` of the projects that depend on your code, for example:
+ "repositories": [
+ {
+ "type": "vcs",
+ "url": "https://git.tuxed.net/fkooman/php-yubitwee"
+ }
+ ],
+ ...
+ "require": {
+ "fkooman/yubitwee": "^1"
+ },
+ ...
+That would solve all Packagist problems, and in the process reduce another
+(direct) proprietary dependency from the list!