Giter Club home page Giter Club logo

Comments (8)

ofek avatar ofek commented on May 24, 2024 1

This will be fixed soon, sorry for the trouble!

from hatch-pip-compile.

ofek avatar ofek commented on May 24, 2024 1

https://github.com/pypa/hatch/releases/tag/hatch-v1.9.1

from hatch-pip-compile.

juftin avatar juftin commented on May 24, 2024 1

Thank you @ofek !

from hatch-pip-compile.

oprypin avatar oprypin commented on May 24, 2024

Oh, I'm sad that Hatch broke several things 😞
But probably this env could override dependency_hash to read the lock file on the fly and also include its own checksum

from hatch-pip-compile.

oprypin avatar oprypin commented on May 24, 2024

Yeah- combine a hash of read_requirements() with super().dependency_hash() - I think that would work

from hatch-pip-compile.

oprypin avatar oprypin commented on May 24, 2024

Yeah it totally can get desynced right now - you can even delete the lock file and it doesn't care

from hatch-pip-compile.

juftin avatar juftin commented on May 24, 2024

Hmm... unfortunately read_requirements() won't work because hatch doesn't re-run dependency_hash() when it updates the stored hash. dependency_hash() will probably have to run run_pip_compile on its own.

        dep_hash = environment.dependency_hash()
        current_dep_hash = self.env_metadata.dependency_hash(environment)
        if dep_hash != current_dep_hash:
            with self.status('Checking dependencies'):
                dependencies_in_sync = environment.dependencies_in_sync()

            if not dependencies_in_sync:
                with self.status('Syncing dependencies'):
                    environment.sync_dependencies()

            self.env_metadata.update_dependency_hash(environment, dep_hash)

from hatch-pip-compile.

juftin avatar juftin commented on May 24, 2024

🎉 This issue has been resolved in version 1.8.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from hatch-pip-compile.

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.