If you need to update a gem version that’s a dependency in a PDK generated module, you can do that by updating the module’s sync.yml
file.
Version and installation information
PE version: Any version
PDK version: 2.5
Solution
-
In the module’s directory, in
.sync.yml
, in the gemfile section, add or edit the following:Gemfile: Optional: ":<ENVIRONMENT NAME>": - gem: '<GEM NAME>' version: '= <VERSION NUMBER>'
For example:
Gemfile: optional: ":development": - gem: 'json' version: '= 2.1.0'
-
To update the gemfile, still in the module’s directory, run
pdk update
How can we improve this article?
0 comments
Please sign in to leave a comment.
Related articles