Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for missing package settings #3

Closed
DavinCasey opened this issue Jan 17, 2019 · 6 comments
Closed

Add support for missing package settings #3

DavinCasey opened this issue Jan 17, 2019 · 6 comments
Labels
area:packaging feature Issue or pull request for a new feature more information required Issue requires more information or a response from the customer stale

Comments

@DavinCasey
Copy link

Currently, it is not possible to set the following package settings via SFDX:

  • apiAccessLevel
  • postInstallClass
  • setupWebLink

What are you trying to do
We're trying to have a seamless packaging & release process via CI.

Describe the solution you'd like
force:source:convert has a --packagename parameter which allows us to set the element in package.xml. I'd like to see additional parameters to allow us to specify values for the settings listed above.

Describe alternatives you've considered
The only workable options we have right now are hackish workarounds:

  • Manually maintain a package.xml file with postInstallClass etc. set
  • Use an XML editing tool in our CI process to insert the missing package setting elements into package.xml.
@dcarroll dcarroll added feature Issue or pull request for a new feature Feedback labels Jan 17, 2019
@dcarroll
Copy link
Contributor

@DavinCasey thanks for the suggestion. I'm not a packaging expert, but the experts will see this request. In the mean time and for my own edification, at what point are those values set if working through the Salesforce UI?

@DavinCasey
Copy link
Author

In the Salesforce UI, you can go to the Package, click edit and you'll have options for Post Install Script, Uninstall Script, Configure Custom Link etc. These are the settings we need to set when deploying our code to the packaging org.

If these values are not set in package.xml when deploying, the next version of the package (which is uploaded via our CI pipeline too) is uploaded WITHOUT a specified Post Install script or 'Configure' custom link. This is a huge problem for our customers as both settings are vital to customers in installing & using our app.

@DavinCasey
Copy link
Author

Hey @dcarroll have you guys had a chance to look into this one yet?

@mzanini
Copy link

mzanini commented Mar 29, 2022

Definitely a bit blocker for us too! The fact that those settings get cleared out every time we push code to our packaging org is puzzling.

@mzanini
Copy link

mzanini commented Mar 29, 2022

We currently use sfdx force:source:deploy to deploy our code to the packaging org for a first generation managed package. It would be good to have an option to specify a postInstallScriptClass as an option when executing that command.

@mshanemc
Copy link
Contributor

mshanemc commented Feb 6, 2023

@mzanini I'm having a hard time understanding the connection between source:deploy (deploy metadata to an org) and the packaging (1GP,2GP) options like postInstallScriptClass that would run after a package:install.

Are you saying that when you deploy code, it's changing the settings on your package in the packaging UI?

@mshanemc mshanemc added the more information required Issue requires more information or a response from the customer label Feb 6, 2023
@forcedotcom forcedotcom locked and limited conversation to collaborators Aug 1, 2023
@WillieRuemmele WillieRuemmele converted this issue into discussion #2357 Aug 1, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
area:packaging feature Issue or pull request for a new feature more information required Issue requires more information or a response from the customer stale
Projects
None yet
Development

No branches or pull requests

6 participants