Skip to content

fix: do not add language from org descriptor to pvc request object - #192

Merged
shetzel merged 2 commits into
mainfrom
sh/fix-language
Jan 17, 2023
Merged

shetzel merged 2 commits into
mainfrom
sh/fix-language

Conversation

@shetzel

@shetzel shetzel commented Jan 17, 2023

Copy link
Copy Markdown
Contributor

If a language was defined in an org file descriptor used for a package version create, it would set that as an option on the package version create request. This fix removes that.

Also, the language option is removed unless an org connection of API version 57.0 or higher is used.

@W-12377800@

Comment thread src/package/packageVersionCreate.ts Resolved
@SchwarzSim

Copy link
Copy Markdown

Hi @shetzel,

I have a Problem/Question regarding:

Also, the language option is removed unless an org connection of API version 57.0 or higher is used.

Does that mean I can't use the language option on version create when my DevHub Org is still on version 56? (or rather it is not applied)
When I'm not using the language option for some reason my Package is generating German metadata. Thus getting an Error.
e.g.

Field: Cannot modify managed object: entity=CustomFieldDefinition, [...] Datatype Previous Value: Picklist (Multi-Select) New Value: Auswahlliste (Mehrfachauswahl)

I tried uninstalling cli and installing an Old version (7.177.1) but it is not working and I'm still getting the same Error.
Do you have any suggestions what i might do to handle this?

Also I'm wondering why is package version create trying to do it in german anyway?
My Mac is setup in english, my Salesforce User is set to english as language and also the Org language is english.
(Only the Locale is German)

any Help is appreciated.

@shetzel

shetzel commented Jan 19, 2023 •

Copy link
Copy Markdown
Contributor Author

@SKuhnt

Does that mean I can't use the language option on version create when my DevHub Org is still on version 56? (or rather it is not applied)

Correct. The Language field was added to the PackageVersionCreateRequest in API version 57.0 (Spring '23) so it would error anyway if you tried setting it pre v57.0. To be clear, this is only about the language field on the PackageVersionCreateRequest, not the language property you can set in your org config file. They are separate things. If you need to use the language property in your org config file then continue to do that.

tshopshireSalesforce pushed a commit to tshopshireSalesforce/packaging that referenced this pull request Jan 24, 2023
fix: do not add language from org descriptor to pvc request object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants