foundweekends / giter8

a command line tool to apply templates defined on GitHub
https://www.foundweekends.org/giter8/
Apache License 2.0
1.74k stars 225 forks source link

Homebrew formula disabled #475

Open timnovis opened 4 years ago

timnovis commented 4 years ago

steps

Try and install giter8 with homebrew as per the docs - brew install giter8

problem

Command outputs Error: giter8 has been disabled!

Looks like the formula has been disabled: https://github.com/Homebrew/homebrew-core/blob/master/Formula/giter8.rb#L11

expectation

giter8 should have installed successfully

eed3si9n commented 4 years ago

Looks like it was disabled here - https://github.com/Homebrew/homebrew-core/pull/58850

anip-patel-exa commented 4 years ago

I am also hitting the same issue. Is there any workaround for this?

eed3si9n commented 4 years ago

The work around would be something like

curl -L https://search.maven.org/remotecontent?filepath=org/foundweekends/giter8/giter8-bootstrap_2.12/0.13.1/giter8-bootstrap_2.12-0.13.1.sh > ~/bin/g8
chmod +x ~/bin/g8
MrPowers commented 3 years ago

The new command is sbt new scala/scala-seed.g8.

You can also run brew edit giter8, delete the disable! because: "fetches unversioned dependencies at runtime" line and rerun brew install giter8, as described here.

@xuwei-k - do you want to get this back in homebrew or should we just encourage users to use the sbt new command?

benhutchison commented 3 years ago

Does sbt new support local testing of templates? That's useful when developing them.

eed3si9n commented 3 years ago

https://github.com/sbt/sbt-giter8-resolver/blob/master/src/main/scala/sbt/Giter8TemplateResolver.scala supports file://

danielRicardo commented 3 years ago

@MrPowers I know many non-Scala developers who use Giter8 to generate templates for all kinds of projects. A python team shouldn't have to install sbt to use Giter8 templates (as long as they're not developing other templates)

TonioGela commented 3 years ago

Coursier based and "curl based" installation methods were added to the Setup page of documentation and the brew one and conscript one were removed, since they are working methods to install giter8 and as @danielRicardo "asked" they do not depend on having an sbt installation locally.

TonioGela commented 3 years ago

@eed3si9n Is there the intention to restore the homebrew formula?

eed3si9n commented 3 years ago

I'm not really interested in trying to convince Homebrew core what they should and shouldn't host. I guess we could make our own tap (?) if there's a huge demand for it?

TonioGela commented 3 years ago

I think 2 kinds of people might want to install giter8:

Creating a tap will force us to maintain it and keep it aligned to the other 2 methods that ATM depend only on publishing CI (so they're more "live" than a homebrew tap). I do agree that the need for a tap depends on the demand but maybe in the meantime we can submit a PR to Homebrew to change the message from Error: giter8 has been disabled! to something like Error: giter8 has been disabled, please refer to the Setup page http://www.foundweekends.org/giter8/setup.html for alternative installation methods?

TonioGela commented 3 years ago

I've opened this PR to change the error message to

Error: giter8 has been disabled because it fetches unversioned dependencies at runtime.
Please refer to the setup page http://www.foundweekends.org/giter8/setup.html for alternative installation methods!

when someone tries to install giter8 from brew. If it gets accepted I propose to close this issue since there are alternative installation methods as said before.

TonioGela commented 3 years ago

Homebrew maintainers closed the issue without much discussion here. IMHO we might consider asking for the removal.