Skip to content

Generate .env from ejson instead of writing it - #580

Draft
kieran-osgood-shopify wants to merge 1 commit into
kieran-osgood/env-local-overlayfrom
kieran-osgood/ejson-generate-env-files
Draft

Generate .env from ejson instead of writing it#580
kieran-osgood-shopify wants to merge 1 commit into
kieran-osgood/env-local-overlayfrom
kieran-osgood/ejson-generate-env-files

Conversation

@kieran-osgood-shopify

Copy link
Copy Markdown
Contributor

What changes are you making?

How to test


Before you merge

Important

  • I've added tests to support my implementation
  • I have read and agree with the Contribution Guidelines
  • I have read and agree with the Code of Conduct
  • I've updated the relevant platform README (platforms/swift/README.md and/or platforms/android/README.md)

Releasing a new Swift version?
  • I have bumped the version in ShopifyCheckoutKit.podspec
  • I have bumped the version in platforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swift
  • I have updated the SwiftPM/CocoaPods version snippets in platforms/swift/README.md (major version only)
Releasing a new Embedded Checkout Protocol version?
  • I have bumped embeddedCheckoutProtocolAndroid in platforms/android/gradle/libs.versions.toml
  • I have updated protocol/languages/kotlin/embedded-checkout-protocol/api/embedded-checkout-protocol.api if the public API changed
Releasing a new Android version?
  • I have bumped checkoutKitAndroid in platforms/android/gradle/libs.versions.toml
  • I have updated the Gradle/Maven version snippets in platforms/android/README.md

Tip

See the Contributing documentation for the full release process per platform.

@github-actions github-actions Bot added the #gsd:50662 Rebase Checkout Kit on UCP label Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

scripts/generate_env_files decrypts config/secrets/*.ejson into .env and
e2e/.env, so setup_storefront_env becomes read-only towards .env. A developer
who keeps their own store in .env.local now keeps it: nothing overwrites the
file that a sync used to rewrite.

The two optional prompt flags go away with the writing. CI callers already
supply their values through the process environment, so they only needed the
flag to suppress a prompt that no longer exists.

scripts/migrate_env_to_local preserves a hand-written .env as .env.local on the
first `dev up` after this change.

STOREFRONT_MERCHANT_IDENTIFIER leaves the shared storefront config: it belongs
beside each sample app's own Apple Pay entitlement.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Assisted-By: devx/252dfd24-6c25-4bb4-8463-27702ec564eb
@kieran-osgood-shopify
kieran-osgood-shopify force-pushed the kieran-osgood/env-local-overlay branch from eba4266 to e94d61b Compare August 5, 2026 12:33
@kieran-osgood-shopify
kieran-osgood-shopify force-pushed the kieran-osgood/ejson-generate-env-files branch from acf432e to 6195b88 Compare August 5, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant