Skip to content

installing specific php extension version defaults to latest #2675

Description

@SirStone

What happened?

I'm trying to install the package php81Extensions.mongodb@1.15
The install looks fine and a devbox update gives me
Info: Already up-to-date php81Extensions.mongodb@1.15 1.15.0

but if I run php -r "phpinfo(INFO_MODULES);" | grep -B 3 -i version |grep MongoDB i get

Image

2.1.1 is the latest version

Image

Steps to reproduce

  1. devbox add php@8.1 install php 8.1
  2. devbox add php81Extensions.mongodb@1.15 install the php extension
  3. php -r "phpinfo(INFO_MODULES);" | grep -B 3 -i version |grep MongoDB check asking to PHP the version of the loaded extension

Command

No response

devbox.json

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.2/.schema/devbox.schema.json",
  "packages": [
    "php@8.1",
    "php81Extensions.mongodb@1.15"
  ],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Devbox version

0.15.1

Nix version

nix (Determinate Nix 3.6.6) 2.29.0

What system does this bug occur on?

Linux (x86-64)

Debug logs

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions