Giter Site home page Giter Site logo

Comments (5)

marklarr avatar marklarr commented on July 20, 2024

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.

erichoracek avatar erichoracek commented on July 20, 2024

@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.

marklarr avatar marklarr commented on July 20, 2024

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.

erichoracek avatar erichoracek commented on July 20, 2024

@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.

marklarr avatar marklarr commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.