Skip to content

CLOUDFLARE_DEPENDENCIES_INSTRUMENTATION=false is ignored once a Worker has a secret #960

Done

Description

@hyfdev

CLOUDFLARE_DEPENDENCIES_INSTRUMENTATION=false keeps void deploy --platform cloudflare from sending the app's package dependencies to Cloudflare, but only while the Worker has no secrets.

Once a Worker has a secret, Void uploads later versions itself through Cloudflare's Versions API so they keep it, and that upload always includes package_dependencies.

Void's Wrangler migration tells users who turned dependency instrumentation off in Wrangler to set this variable instead, so they start sending this data after their first secret.

To reproduce, set the variable, deploy to a Worker that already has a secret, and look at the JSON body of the version upload.

I checked this against a local mock of the Cloudflare API, not a real account.

#959 fixes it.

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

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions