Repository navigation
Pin scratch orgs to en_US and document unmanaged --no-namespace - #240
Open
RubenHalman wants to merge 1 commit into
Open
RubenHalman wants to merge 1 commit into
RubenHalman wants to merge 1 commit into
Conversation
Custom objects use startsWith, which Salesforce rejects when a scratch org inherits a non-English Dev Hub language. Unmanaged source deploys also need --no-namespace; this project's namespace is UnsubscribeLnk and a typical Dev Hub does not own it.
|
Step 2 on the Developer Documentation wiki page has a "Language" note telling people to use an English Dev Hub, because scratch orgs inherit the Dev Hub's language. This PR pins en_US in the scratch defs, so that note is no longer needed once it merges. Please don'f forget to delete that bullet point from the wiki when this got merged. |
Contributor
|
Would this eliminate the need for #237 |
Member
Author
|
@DKeatonDC My applogies, I wasn't aware of your PR, but I think you are right. This PR adds some additional documentation etc |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scratch orgs created from this repo inherited the Dev Hub language. On a non-English Dev Hub that produced
nl_NL, deploy failed withCannot specify a startsWith attribute for this languageonUnsubscribe__c.This pins
languagetoen_USonconfig/project-scratch-def.jsonand the CumulusCI defs inorgs/.The README now documents the unmanaged source path: create scratch orgs with
--no-namespace.sfdx-project.jsonis namespacedUnsubscribeLnkfor the managed package, and a Dev Hub that does not own that namespace cannot create a namespaced scratch org. Do not install the managed package into the same org as a source deploy.