Comments (5)
It's definitely an interesting thought, but I'm wondering how often people would actually use this workflow. The idea of synx
, from Venmo's perspective, was pretty much "dang, we have an old project with a pretty out of sync project folder. It'd be really nice if we could quickly fix this up, and, now that we know better, be mindful of keeping files/folders synced when we create them in the future." The idea wasn't really that it would be run on a project multiple times, although it is certainly possible to use it that way.
Maybe this could be a custom step built into your CI setup?
from synx.
@marklarr Thanks for the response!
I feel like it would just be another great way to protect us against ourselves. Everyone knows that they should run tests before committing, but CI is there to ensure that it always happens regardless of that occasional human error. I could imagine this build flag functioning the same way: even though we know that it's best practice to keep files/folders synced and all files in the repo added to your xcodeproj, synx
would be a way to ensure that it always happens regardless of if we remember to check. In my experience, I've found that unused files and mismatched directories accidentally slip into my projects even though I know better; synx
would be a great way to prevent that slow buildup of cruft from accumulating once and for all.
from synx.
I definitely see where you're coming from. Now that I think about it, it might actually be hard to detect if things are out of place while synx
is running. It just builds out a new project folder in a temporary directory, and then replaces your current one with it.
Some options could be running git status
to see if anything has changed, or recursively comparing the new project folder to the old one. What do you think?
from synx.
@marklarr That sounds like a decent stopgap solution. CI could run the following:
synx Project.xcodeproj
# Exit 1 if any files have changed, 0 otherwise
git diff-index --quiet HEAD
Thanks again for the quick responses! You can close this if you'd like, or obviously keep open if you want to integrate a similar behavior into synx
at any point.
from synx.
Cool :) I might close, but if more people seem to want this, I think we can consider adding it into synx
!
from synx.
Related Issues (20)
- Crash report: Errno::EEXIST
- Have the synx work in oposite direction as well? HOT 1
- Swift Scripting HOT 2
- Synx can irreversibly remove all your files HOT 1
- *.xcassets files was removed HOT 2
- Not work HOT 1
- Trunk whole path in filename
- Feature request: exclude files HOT 1
- Xcode 8 name
- synx error happens HOT 1
- running synx with --no-color fails and deletes all the files
- Is it possible to separate convert logic into a couple of steps?
- Synx removes empty folder HOT 1
- Sorting isn't localized (ZZ sorts before aa)
- GUI Wrapper App
- Removing bridging header file from project HOT 2
- Since using Synx Xcode Assistant no longer works
- support Mojave in different configurations
- [SPM] The problem with incorrect interaction with Swift Package Manager HOT 3
- Please add me as a contributor to the project HOT 2
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 synx.