Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Install specific plugin version

gpm plugins

Started by Tomas Kouba 5 years ago · 1 replies · 949 views
5 years ago

Hello,

I'm quite new to Grav, have 2 sites running on it. Because more people are working on the projects, we need to reproduce the site from our Git repository almost 1:1. The problem are plugins, because GPM installs the newest version of a plugin by default. So it's not possible get the same version of Grav and it's plugins every time I build the project.

So how to install a specific plugin version during project installation? I have only 3 ideas.

  1. Add /user/plugins/* to Git repository (don't like it, there are vendor dirs etc.)
  2. Use gpm direct-install (don't like that since direct-install doesn't install dependencies)
  3. Add /user/plugins/*/blueprint.yaml to Git repository? (didn't try that but dependencies are specified like { name: form, version: '>=3.0.0' } so again, GPM would probably try to install the newest versions of the depencencies which could result in incompatibility).

Are there any other options? Which one is the best?

Thank you.

5 years ago

@netmagnet, Recently a feature request has been created on github. The request suggested something like:

BASH
$ bin/gpm install plugin:1.2.3

If you have extra info to share, or want to give it a thumbs up, you can do so at the feature request.

Have you considered adding a composer.json/composer.lock file in the root of the site, containing all dependencies in the site, and run composer install?

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 3 days ago
2 70 5 hours ago
General · by pamtbaau, 10 hours ago
1 45 9 hours ago
General · by Andy Miller, 22 hours ago
0 43 22 hours ago
General · by Marcel, 12 months ago
6 341 4 days ago
General · by Duc , 5 days ago
3 35 5 days ago