Comments (14)
Tan with log level trace, although not much different than the detaults, looks like the resources are being retrieved, but at some point they're marked to delete
=== Retrieved Source
FULL NAME TYPE PROJECT PATH
────────────────────────────────────────────────────────────────────── ──────────────────── ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
missing1 StaticResource src/main/default/staticresources/missing1.csv
missing1 StaticResource src/main/default/staticresources/missing1.resource-meta.xml
missing2 StaticResource src/main/default/staticresources/missing2.resource-meta.xml
missing2 StaticResource src/main/default/staticresources/missing2.txt
... lots of stuff that got cleaned fine ...
removed /Users/ralphcallaway/Development/project/src/main/default/staticresources/missing2.txt
removed /Users/ralphcallaway/Development/project/src/main/default/staticresources/missing1.csv
from force-source-clean.
Not sure why this would happen... Next time zip your project so I can reproduce plz
from force-source-clean.
@ChuckJonas sent
from force-source-clean.
thx... So interesting behavior. Check this out:
- Make modifications to the file without deploying (outside of vscode)
- Run
sfdx force:source:retrieve --manifest ...
Result: Your local changes will not be overwritten
Basically it just seems like retrieve:source is broken for static resources. It doesn't update them, it only creates them if they don't exist.
from force-source-clean.
ahh, and that broke the clean technique
organize your files into package directories they said, it'll all work, ... wtf
from force-source-clean.
seems like there are options to accomodating, although they seem like a pain
- list static resources
- delete any that aren't returned by the list command
- mv the rest before doing the manifest refresh (and remember which folder they came from)
- do the retrieve
- put them back in their appropriate folders
from force-source-clean.
fix approach
prep
- delete all non-meta files in package directories
- pipe "DELETE" into all meta files
retrieve
prune
- delete all empty directories
- delete all meta files whose content is DELETE
from force-source-clean.
@ralphcallaway checkout the branch I just pushed (sry been sitting on this for a few days). I think it does everything except delete all empty directories
.
You should have permission to push directly to this branch (no need to work off fork).
from force-source-clean.
@ChuckJonas oh sweet, i'll give it a go and see if that works. We could probably skip deleting the empty directories unless it's causes some other issues.
from force-source-clean.
@ChuckJonas sweet, text static resources are no longer getting deleted. would love to push a v0.0.6 if you're ready, or if you're hoping to do some more refinement we could do a 0.0.6-beta.1 so it's up on npm treats it as a pre-release and won't install without specifying the version
from force-source-clean.
@ChuckJonas derp, npm changed that behavior, npm install will do pre-releases (wtf) unless you explicitly tag them as "next", see https://medium.com/@mbostock/prereleases-and-npm-e778fc5e2420
from force-source-clean.
ya, this is a actually a good example of why the tags are nice. We think we have 0.0.6 ready but it would still be nice to test it before making it the latest. Once we are happy we can just update the tags instead of releasing the same code as a different version.
However, this change might actually warrant a new minor version, so maybe 0.1.0.
In general, I'm pretty lousy at sticking to semantic versioning.
from force-source-clean.
@ChuckJonas awesome, no opinions on minor vs patch, feels like a bug fix which would typically be a patch, i think minor is when you add a new feature that's non breaking
once it's live i can turn on the auto checkouts using this command for a couple repos which would provide some decent test exposure
from force-source-clean.
yea you are probably right. I was thinking "support for static resources as a feature"
Either way, I already released 0.1.0. I don't really even see any reason to beta tag it. Pretty sure we're the only ones using this
from force-source-clean.
Related Issues (15)
- default -x
- -f insted of -n for skip prompt? HOT 1
- Basic Test Suite
- Dont Change File Permissions on Clean HOT 3
- Include Fields on Managed Objects HOT 4
- Improvement: Respect .forceIgnore HOT 6
- Do not work with sfdx-cli/7.123.1 HOT 2
- Emails Incorrectly Cleaned HOT 2
- Non SFDX File in Package Directory Breaks Clean HOT 5
- Spinner During Clean HOT 2
- Pre-Clean Backup and Maybye Restore on Error HOT 9
- Add Command Line Automate to match standard functions HOT 2
- Support Auto Completing Manifest Name (Ref #17) HOT 4
- Missing module 'tmp' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from force-source-clean.