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

force:source:retrieve -x ... doesn't update static resources #190

Closed
ChuckJonas opened this issue Sep 28, 2019 · 3 comments
Closed

force:source:retrieve -x ... doesn't update static resources #190

ChuckJonas opened this issue Sep 28, 2019 · 3 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@ChuckJonas
Copy link

ChuckJonas commented Sep 28, 2019

Summary

force:source:retrieve will pull down static resources, but it does not update them.

Steps To Reproduce:

  1. Create a static resource called broken.txt with the text: Hello World
  2. Create a dx manifest project connected to the org
  3. run sfdx force:source:retrieve -x manifest/package.xml
  4. Confirm the broken.txt was retrieved and contains Hello World
  5. upload a new version of the broken.txt via salesforce.com (not via local compile), that reads goodbye world
  6. run sfdx force:source:retrieve -x manifest/package.xml

Expected result

The local copy of broken.txt should be updated to read goodbye world

Actual result

The local copy of broken.txt still reads hello world

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):

sfdx-cli/7.25.3-16d54c01ee darwin-x64 node-v10.15.3

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)

sfdx-cli 7.25.3 (core)

OS and version:
OSX 10.14.5

@rvwatch rvwatch added the bug Issue or pull request that identifies or fixes a bug label Oct 14, 2019
@Pflaumen
Copy link

Pflaumen commented Nov 21, 2019

I and my coworkers have been running into this same issue.

sfdx-cli/7.33.2 darwin-x64 node-v9.5.0

@oclif/plugin-commands 1.2.3 (core)
@oclif/plugin-help 2.2.1 (core)
@oclif/plugin-not-found 1.2.3 (core)
@oclif/plugin-plugins 1.7.8 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.7 (core)
analytics 1.2.2 (core)
generator 1.1.2 (core)
salesforcedx 47.6.2 (core)
├─ salesforce-alm 47.9.0 (core)
└─ salesforcedx-templates 47.6.2 (core)

OSX 10.14.6 (18G1012)

@ChuckJonas
Copy link
Author

@Pflaumen we've created a work around for this in https://github.com/ChuckJonas/force-source-clean

(although make sure you understand the "clean" behavior before running it)

@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-9299116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

6 participants