Skip to content
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

Opposite of pac solution sync? #531

Open
skfd opened this issue May 16, 2023 · 3 comments
Open

Opposite of pac solution sync? #531

skfd opened this issue May 16, 2023 · 3 comments

Comments

@skfd
Copy link

skfd commented May 16, 2023

pac solution sync brings changes from environment into local .cdsproj.

How do I push changes that I did in local .cdsproj to back selected environment?

In the UI sense, I expect doing simple command like pac solution syncback.

@devkeydet
Copy link

devkeydet commented Nov 7, 2023

Right now, the equivalent would be dotnet build in the folder that includes the cdsproj file. The output will be a solution zip. Managed, unmanaged, or both depending on how you have your cdsproj configured. You can then run pac solution import.

Based on your feedback, it sounds like you want pac solution syncback (or some similar verb) to wrap all these steps into a single gesture. Is my interpretation correct?

@skfd
Copy link
Author

skfd commented Nov 9, 2023

Exactly! The scenario is that I git pull changes from our shared repo and push those changes to env. The idea is to have one command to make env have the state that is captured in git.

Full scenario might require more magic and even be git-aware (for example simple solution import will not delete fields, but it's not a big deal, can be a "known limitation").

I think the verbs should be pac solution push and pac solution pull. Sync is non-directional word, so it implies that it does both.

PS: maybe there needs to be a noun for "unpacked solution" (for example "repo"), so that we do not confuse commands that are applied to solution zip files and repos.

@BetimBeja
Copy link

BetimBeja commented Feb 27, 2024

@devkeydet @petrochuk pac solution sync is not honoring the Mapping file specified as follows <SolutionPackageMapFilePath>$(MSBuildThisFileDirectory)WebResourcesMap.xml</SolutionPackageMapFilePath>

Can you please add a parameter to specify the mapping file on the pac solution clone command? maybe --map-file {PATH}

I didn't create a new issue since these requests are all related 😉

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

No branches or pull requests

3 participants