Skip to content

Local plugins' files in VirtEnv aren't updated on change #2755

@tomtaylor

Description

@tomtaylor

What happened?

I'm working on a local plugin. I'd expect that if I enter the devbox shell and a file in create_files is missing/stale, it would be created/overwritten, but that doesn't seem to be the case. The file, even if deleted, remains unaffected.

I'd expect this to copy the file again on each devbox shell evaluation, ensuring a local plugin can manage the files in the virtenv correctly.

Steps to reproduce

I've made a dummy repo to reproduce this: https://github.com/tomtaylor/devbox-bug

  1. Clone the repo
  2. devbox shell
  3. The plugin will have created a test.txt at .devbox/virtenv/test/test.txt containing 123
  4. Change the source file in the plugin (plugin/test/test.txt) to something else
  5. Exit and reenter the shell
  6. .devbox/virtenv/test/test.txt is still 123

Command

shell

devbox.json

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json",
  "packages": [],
  "shell": {
    "init_hook": ["echo 'Welcome to devbox!' > /dev/null"],
    "scripts": {
      "test": ["echo \"Error: no test specified\" && exit 1"]
    }
  },
  "include": [
    "path:./plugins/test"
  ] 
}

Devbox version

0.16.0

Nix version

2.33.0

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions