gobuffalo / buffalo-auth

Buffalo auth plugin helps adding username password authentication to your app
https://gobuffalo.io
MIT License
41 stars 28 forks source link

Error installing buffalo-auth plugin #84

Closed karfianto closed 2 years ago

karfianto commented 2 years ago

Hello! Thank you so much for your interest in Buffalo. The fact you care enough to be here, right now, helping, makes us very happy.

Description

Unable to install buffalo-auth plugin

Steps to Reproduce the Problem

  1. Run buffalo plugins install github.com/gobuffalo/buffalo-auth

Expected Behavior

Should be similar to docs

Actual Behavior

> buffalo plugins install github.com/gobuffalo/buffalo-auth
no required module provides package github.com/gobuffalo/buffalo-auth; to add it:
        go get github.com/gobuffalo/buffalo-auth
Usage:
  buffalo plugins install [flags]

Flags:
  -d, --dry-run   dry run
  -h, --help      help for install
      --vendor    will install plugin binaries into ./plugins [WINDOWS not currently supported]
  -v, --verbose   turn on verbose logging

ERRO[0004] Error: exit status 1

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

``` -> Buffalo: Application Details Pwd /mnt/c/Users/intruder/go/src/github.com/karfianto/mypro Root /mnt/c/Users/intruder/go/src/github.com/karfianto/mypro GoPath /mnt/c/Users/intruder/go PackagePkg github.com/karfianto/mypro ActionsPkg github.com/karfianto/mypro/actions ModelsPkg github.com/karfianto/mypro/models GriftsPkg github.com/karfianto/mypro/grifts WithModules true Name mypro Bin bin/mypro VCS none WithPop true WithSQLite false WithDep false WithWebpack true WithNodeJs true WithYarn true WithDocker true WithGrifts true AsWeb true AsAPI false InApp true PackageJSON {map[build:webpack --mode production --progress dev:webpack --watch]} -> Buffalo: config/buffalo-app.toml name = "mypro" bin = "bin/mypro" vcs = "none" with_pop = true with_sqlite = false with_dep = false with_webpack = true with_nodejs = true with_yarn = true with_docker = true with_grifts = true as_web = true as_api = false -> Buffalo: config/buffalo-plugins.toml [[plugin]] binary = "buffalo-pop" go_get = "github.com/gobuffalo/buffalo-pop/v2" ```
karfianto commented 2 years ago

My temporary workaround is calling the buffalo-auth directly

/mnt/c/Users/intruder/go/bin/buffalo-auth auth

instead of buffalo g auth

sio4 commented 2 years ago

I confirmed the issue. (By the way, the issue is not on buffalo but on buffalo cli https://github.com/gobuffalo/cli)

It was introduced by https://github.com/gobuffalo/cli/commit/2af36e7cc5690c7dc8fd718d46246fb84daee847 but I think the direction of the committed change is correct. I am working on fixing it.

sio4 commented 2 years ago

Direction should be:

sio4 commented 2 years ago

It was fixed as https://github.com/gobuffalo/cli/pull/84.

closing