Giter Club home page Giter Club logo

Comments (11)

ursuad avatar ursuad commented on August 19, 2024

Maybe an option here would be to introduce a hook which will get triggered once the pull (update) is successful?
For example calling a configurable REST endpoint ( notify ) once the update is complete. This way, it would be really easy to create a wrapper around third party tools that want to use the git-sync functionality.

The third party tools would get notified once the update is complete. This would partly eliminate the need for non atomic behaviour.

from git-sync.

thockin avatar thockin commented on August 19, 2024

from git-sync.

stp-ip avatar stp-ip commented on August 19, 2024

Do we want to add triggering to git-sync?
What trigger should be used? http, touch ready.file, etc.?
Should we still provide a non atomic option?

from git-sync.

thockin avatar thockin commented on August 19, 2024

from git-sync.

stp-ip avatar stp-ip commented on August 19, 2024

One of the pain points of symlinks are programs using notify "different" following symlinks and not checking for symlink changes itself. hugo for example.

from git-sync.

thockin avatar thockin commented on August 19, 2024

from git-sync.

japettyjohn avatar japettyjohn commented on August 19, 2024

This would help when the folder becomes the CWD of the app for Go, not sure if this is the same problem in Hugo. In my case the symlink is dereferenced which then leads to explosions when it references a relative file from the non-existent folder.

Another option would be to replace the old folder with a symlink to the new folder. The notification should still be added so things can get reloaded as needed.

from git-sync.

fejta-bot avatar fejta-bot commented on August 19, 2024

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

from git-sync.

thockin avatar thockin commented on August 19, 2024

/lifecycle frozen
/remove-lifecycle stale

from git-sync.

thockin avatar thockin commented on August 19, 2024

Do you think #110 would cover this need?

from git-sync.

stp-ip avatar stp-ip commented on August 19, 2024

It doesn't solve it perfectly, but it gives a good workaround I guess. After merge I can take another look and maybe write up some ideas.

from git-sync.

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.