Giter Club home page Giter Club logo

Comments (10)

ferd avatar ferd commented on August 28, 2024 1

Done.

from erlpass.

ferd avatar ferd commented on August 28, 2024

I'll take note of it. I was on vacation away from a computer and will see when I can find time for it soon-ish.

from erlpass.

ferd avatar ferd commented on August 28, 2024

In fact, I can't publish erlpass to hex because the bcrypt dependencies on there are too old. Can't do it for now.

from erlpass.

aberman avatar aberman commented on August 28, 2024

Ok, no prob.

from erlpass.

ddeboer avatar ddeboer commented on August 28, 2024

I worked together with the bcrypt Hex package’s previous owner and published a 1.0.0 version of bcrypt on Hex (based on https://github.com/erlangpack/bcrypt). This version is updated and compatible with OTP 20.

@ferd Can you try to depend on {bcrypt, "1.0.0"} in your rebar.config? That should enable you to publish this package to Hex as well.

from erlpass.

ferd avatar ferd commented on August 28, 2024

Looking at smarkets/erlang-bcrypt@master...erlangpack:master you'll have a problem: the version being based on git means that when used as a package, all version information is dropped (since there's no git repo to read it from) and the git information of the importing codebase will be used. This means the hex versions and the runtime versions of the library will not match. Also keeping the versions in line with the underlying library would be good, unless this is an official fork.

Once this is fixed, I could see it making sense to depend on that copy since it's otherwise in line with smarkets' version.

from erlpass.

ddeboer avatar ddeboer commented on August 28, 2024

when used as a package, all version information is dropped

Ah, I didn’t know that.

the version being based on git

I used {vsn, "git"} so I can easily auto-publish the package from Travis to Hex.pm, based on its Git tag. This is want I want: Hex versions corresponding to Git tags.

What would be the recommended way to go about this? Have a hard-coded version number in app.src and change that with sed?

from erlpass.

ferd avatar ferd commented on August 28, 2024

I just double-checked, it appears that the publishing does make the version work by forcing it to be static. It's fine. The use case that causes problem is an alternative one and I got confused. The case where this fails is when someone downloads the .tar or some archive of the repo and builds from there -- this happened a lot with rebar3 itself.

from erlpass.

ddeboer avatar ddeboer commented on August 28, 2024

I see. The idea here is to only publish the package from Travis, where the environment is fully declared in .travis.yml so no weird stuff happens.

Unfortunately, I cannot find an e-mail address for smarkets/erlang-bcrypt’s original maintainer. He doesn’t seem to be active on GitHub anymore. I was able to reach chef/erlang-bcrypt’s maintainer to get owner rights on the bcrypt package on Hex. That fork has already been deprecated.

So, at least we now have cleared up the confusion about all the bcrypt forks and an up-to-date bcrypt version on Hex.pm. @ferd Are there any other issues you want resolved before depending on bcrypt 1.0?

from erlpass.

ferd avatar ferd commented on August 28, 2024

That should be good enough, I think.

from erlpass.

Related Issues (9)

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.