Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer is fetching v0.1.1 #143

Closed
tolgaulas opened this issue Jan 1, 2023 · 9 comments
Closed

composer is fetching v0.1.1 #143

tolgaulas opened this issue Jan 1, 2023 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@tolgaulas
Copy link

When I compare what's fetched and put with the /vendor/casbin/menu and this repo, clearly what's fetched is not a match. Here is the composer info casbin/casbin:

composer info casbin/casbin
name     : casbin/casbin
descrip. : a powerful and efficient open-source access control library for php projects.
keywords : access control, acl, casbin, rbac
versions : * v0.1.1
type     : library
license  : Apache License 2.0 (Apache-2.0) (OSI approved) https://spdx.org/licenses/Apache-2.0.html#licenseText
homepage : 
source   : [git] https://github.com/php-casbin/php-casbin.git 3df83ee844d48ae7888e18e5f58c398e73678871
dist     : [zip] https://api.github.com/repos/php-casbin/php-casbin/zipball/3df83ee844d48ae7888e18e5f58c398e73678871 3df83ee844d48ae7888e18e5f58c398e73678871
path     : ...../vendor/casbin/casbin
names    : casbin/casbin

support
issues : https://github.com/php-casbin/php-casbin/issues
source : https://github.com/php-casbin/php-casbin/tree/master

autoload
psr-4
Casbin\ => src/

requires
php >=5.6.0
symfony/expression-language ^2.8

mind the version pls.

@tolgaulas
Copy link
Author

changing composer.json to below fixes the issue, you may like to update the documentation :

    "require": {

        "casbin/casbin": "^3.0"        
    }

@hsluoyz
Copy link
Member

hsluoyz commented Jan 2, 2023

@tolgaulas hi, can you make a PR to update the docs?

@hsluoyz hsluoyz self-assigned this Jan 2, 2023
@hsluoyz hsluoyz added the question Further information is requested label Jan 2, 2023
@hsluoyz
Copy link
Member

hsluoyz commented Jan 2, 2023

@leeqvip

@leeqvip
Copy link
Member

leeqvip commented Jan 7, 2023

@tolgaulas casbin/menu? Which project is this? Also casbin v0.1.1 is a very old version, please use the latest version.

@hsluoyz
Copy link
Member

hsluoyz commented Jan 13, 2023

@tolgaulas

@tolgaulas
Copy link
Author

tolgaulas commented Jan 13, 2023

yes ?

This is not hand picked. I just pointed out that its default is picking v0.1.1.

I think you need to add the version key to the composer.json each time you release it. That's how composer works along with gits afaik.

@hsluoyz
Copy link
Member

hsluoyz commented Jan 13, 2023

@tolgaulas hi, can you make a PR to fix it?

@xuantianyingjie
Copy link

yes ?

This is not hand picked. I just pointed out that its default is picking v0.1.1.

I think you need to add the version key to the composer.json each time you release it. That's how composer works along with gits afaik.

I tried and didn't find this problem. You can execute the command composer config -l -g to see the mirror address used, I use: https://repo.packagist.org

@hsluoyz
Copy link
Member

hsluoyz commented Apr 5, 2023

ping @tolgaulas

@leeqvip leeqvip closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants