Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push latest version to hex.pm #24

Closed
falood opened this issue Jun 11, 2016 · 19 comments
Closed

Push latest version to hex.pm #24

falood opened this issue Jun 11, 2016 · 19 comments

Comments

@falood
Copy link
Contributor

falood commented Jun 11, 2016

The fs package version on hex.pm is still v0.9.2. Could you please do an update?

@zorbash
Copy link
Contributor

zorbash commented Dec 10, 2016

@falood Now the latest version now is 2.11.0.

@5HT can you also please push a git tag pointing to the pushed sources?

@falood
Copy link
Contributor Author

falood commented Dec 16, 2016

I tested the new version again and again, but it doesn't works.
Just now, I found the issue: c_src folder haven't published to hexpm and I have fix it with #36 .

BTW, I think it's better to publish this package with rebar3.
https://github.com/elixir-lang/elixir/blob/master/lib/mix/lib/mix/tasks/deps.compile.ex#L70-L85
if mix.exs file in the root path of the project, mix will be used to compile this project and rebar.confg will be ignored, so I have to do lots of things to compile it myself if I used it within a project build by mix.
If you agree this, I'm glad to make another pull request. @5HT

@davejlong
Copy link

See this for publishing packages using rebar: https://hex.pm/docs/rebar3_publish

@5HT
Copy link
Owner

5HT commented Dec 19, 2016

Could you please explain me why I need rebar3, hex and mix to publish erlang package? :-)

@davejlong
Copy link

You don't need mix to publish erlang packages. I don't think you need the package.exs file either.

@falood
Copy link
Contributor Author

falood commented Dec 19, 2016

@davejlong agree, I think rebar3 is enough for a purge erlang developer.

@liveforeverx
Copy link
Contributor

Should work this way: #25

@5HT
Copy link
Owner

5HT commented Dec 19, 2016

yeah, but fs is using mad and we even don't even need rebar to be usable.

@5HT
Copy link
Owner

5HT commented Dec 19, 2016

$ brew install rebar3
Error: No available formula with the name "rebar3"

no luck :-)

@davejlong
Copy link

@5HT I believe only rebar3 and mix can push the hex.pm

@liveforeverx
Copy link
Contributor

liveforeverx commented Dec 19, 2016

@5HT Probably this can work:

$ brew install homebrew/versions/rebar3

@5HT
Copy link
Owner

5HT commented Dec 19, 2016

Oh! Here you go:

bash-3.2$ rebar3 hex user auth
Username: ([])> 5HT
Password:
Generating API key...
bash-3.2$ rebar3 hex publish
===> Verifying dependencies...
Publishing fs 2.12
  Description: FS VXZ Listener
  Dependencies:

  Included files:
    /Users/maxim/depot/synrc/fs/LICENSE
    /Users/maxim/depot/synrc/fs/README.md
    /Users/maxim/depot/synrc/fs/c_src/bsd/main.c
    /Users/maxim/depot/synrc/fs/c_src/mac/cli.c
    /Users/maxim/depot/synrc/fs/c_src/mac/cli.h
    /Users/maxim/depot/synrc/fs/c_src/mac/common.h
    /Users/maxim/depot/synrc/fs/c_src/mac/compat.c
    /Users/maxim/depot/synrc/fs/c_src/mac/compat.h
    /Users/maxim/depot/synrc/fs/c_src/mac/main.c
    /Users/maxim/depot/synrc/fs/c_src/windows/ArgumentParser.cs
    /Users/maxim/depot/synrc/fs/c_src/windows/Arguments.cs
    /Users/maxim/depot/synrc/fs/c_src/windows/AssemblyInfo.cs
    /Users/maxim/depot/synrc/fs/c_src/windows/Makefile
    /Users/maxim/depot/synrc/fs/c_src/windows/Runner.cs
    /Users/maxim/depot/synrc/fs/include/api.hrl
    /Users/maxim/depot/synrc/fs/priv/inotifywait.exe
    /Users/maxim/depot/synrc/fs/rebar.config
    /Users/maxim/depot/synrc/fs/rebar.lock
    /Users/maxim/depot/synrc/fs/src/fs.app.src
    /Users/maxim/depot/synrc/fs/src/fs.erl
    /Users/maxim/depot/synrc/fs/src/fs_app.erl
    /Users/maxim/depot/synrc/fs/src/fs_event_bridge.erl
    /Users/maxim/depot/synrc/fs/src/fs_server.erl
    /Users/maxim/depot/synrc/fs/src/fs_sup.erl
    /Users/maxim/depot/synrc/fs/src/sys/fsevents.erl
    /Users/maxim/depot/synrc/fs/src/sys/inotifywait.erl
    /Users/maxim/depot/synrc/fs/src/sys/inotifywait_win32.erl
    /Users/maxim/depot/synrc/fs/src/sys/kqueue.erl
  Maintainers:
    Maxim Sokhatsky
    Vladimir Kirillov
  Licenses: ISCL
  Links:
    Github: https://github.com/synrc/fs
  Build tools: rebar3
Before publishing, please read Hex CoC: https://hex.pm/policies/codeofconduct
Proceed? ("Y")> Y
===> Status Code: HTTP status code: 400
Hex Error: Bad request

Cool build stack! :-)

@5HT
Copy link
Owner

5HT commented Dec 19, 2016

BTW What if I disagree with CoC? Did you see my CoC?

18056_600-2

@5HT
Copy link
Owner

5HT commented Dec 19, 2016

I'm dealing with single TXT file for packages description: http://synrc.com/apps/index.txt
This is how we track dependencies with mad.

@liveforeverx
Copy link
Contributor

liveforeverx commented Dec 19, 2016

@5HT Does mad have something like own hex?

@5HT
Copy link
Owner

5HT commented Dec 19, 2016

Your build tools are over-engineered for such a small and beautiful platform as Erlang.
It is not about complaining about your way of doing software.
I just want to show that there obviously some problems with both rebar3 and hex

@5HT
Copy link
Owner

5HT commented Dec 19, 2016

I can release downloading of binary packages in week-end.
Everything is ready, I just don't need it too much:
https://github.com/synrc/mad/blob/master/src/sources/mad_synrc.erl#L25

@5HT
Copy link
Owner

5HT commented Dec 20, 2016

Leave your elixir hipsters and let's built small and elegant way of doing binary packaging :-)
Let's say with hex support but in more economic and spartan way.

@5HT
Copy link
Owner

5HT commented Dec 20, 2016

https://hex.pm/packages/fs/2.12.0

@5HT 5HT closed this as completed Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants