Skip to content

Access to dependency versions at runtime #35

@ii14

Description

@ii14

Maybe plugins should have some standard way of accessing versions of their dependencies to handle differences in API and behavior between versions?

Example:

packspec["telescope"].version
-- returns a string, eg. "1.2.3"

if packspec["telescope"].is("~> 2.0") then -- format reused from "version" field in the spec
  -- ...
else
  -- ...
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions