Comments (10)
Done.
from erlpass.
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.
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.
Ok, no prob.
from erlpass.
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.
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.
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.
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.
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.
That should be good enough, I think.
from erlpass.
Related Issues (9)
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 erlpass.