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

5.0.3 version introduced bug on document metadata #270

Closed
1 task done
arafesthain opened this issue Mar 21, 2022 · 10 comments · Fixed by #271
Closed
1 task done

5.0.3 version introduced bug on document metadata #270

arafesthain opened this issue Mar 21, 2022 · 10 comments · Fixed by #271
Assignees
Labels
bug Something isn't working

Comments

@arafesthain
Copy link
Contributor

arafesthain commented Mar 21, 2022

Issue verification check :

  • does the current repository is fully deployable at the commit sha given to the from parameter of the command ?

What is the problem

Only document xml metadata is present inside a document folder in version 5.0.3
image

image

Expected Results (like in version 5.0.2)

image

Command used:
sfdx sgd:source:delta -d -t HEAD -f 2022_GR2.1_MARKETING -r /home/vsts/work/1/salesforce_repo -i /home/vsts/work/1/salesforce_repo/.forceignore -o output

@arafesthain arafesthain added the bug Something isn't working label Mar 21, 2022
@arafesthain arafesthain changed the title 5.0.3 version introduce bug on document metadata 5.0.3 version introduced bug on document metadata Mar 21, 2022
@scolladon
Copy link
Owner

Hi @arafesthain

Thanks for raising this issue.
It is an issue with the new way to get diff from git not explicitly parsing binary file.

We will ship a new version very soon to fix this.

@scolladon
Copy link
Owner

scolladon commented Mar 22, 2022

Quick question here.

Imagine you just change the png file.
Per exemple just Action_Required.png

What do you expect to be able to deploy a delta generated sources from the plugin:

  1. Just the png file (the actual behaviour of the plugin)
  2. The png file and the associated document-meta.xml file (My local tests make me think it should be this)
  3. The whole folder (I don't think so)

PR #271 ready for review/testing @arafesthain if you have time

@arafesthain
Copy link
Contributor Author

Quick question here.

Imagine you just change the png file.
Per exemple just Action_Required.png

What do you expect to be able to deploy a delta generated sources from the plugin:

  1. Just the png file (the actual behaviour of the plugin)
  2. The png file and the associated document-meta.xml file (My local tests make me think it should be this)
  3. The whole folder (I don't think so)

PR #271 ready for review/testing @arafesthain if you have time

Hi there, Thanks for the quick reply, point 2 for me :)
Don't remember if you put the steps somewhere to compile the package locally?

@scolladon
Copy link
Owner

Yes, we did add steps to run the plugin from sources here

@arafesthain
Copy link
Contributor Author

arafesthain commented Mar 22, 2022

@scolladon unable to pack sgd :')
yarn pack v1.22.18

$ rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme
wrote manifest to C:\gitRepos\sgd\oclif.manifest.json
replacing <!-- commands --> in README.md
$ rm -f oclif.manifest.json ; prettier --write README.md
rm: unknown option -- write
Try 'rm --help' for more information.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/pack for documentation about this command.

Seems that there is a misleading command line interpretation on windows ?

@scolladon
Copy link
Owner

Have you tried to install the project first ?

$ yarn install

@arafesthain
Copy link
Contributor Author

arafesthain commented Mar 22, 2022

same error after running yarn install successfully.

image

@scolladon
Copy link
Owner

I think there maybe an issue with the globally installed version of prettier in your environment and the way we are prettifying the README.md

To unblock you just remove ; prettier --write README.md part of the postpack script in the package.json file

@arafesthain
Copy link
Contributor Author

arafesthain commented Mar 22, 2022

@scolladon GO for the pull request :) working fine from here

image

@scolladon
Copy link
Owner

Version 5.0.4 is just released with the fix for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants