nishanths / license

Command line license text generator.
MIT License
663 stars 82 forks source link

Vendor Obsolete #34

Closed kendfss closed 3 years ago

kendfss commented 3 years ago

I clone the repo then run: cd license; go mod tidy; go build

which gives following error:

go: inconsistent vendoring in /Users/kendfss/gitclone/clones/nishanths/license:
    github.com/onsi/gomega@v1.16.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

    To ignore the vendor directory, use -mod=readonly or -mod=mod.
    To sync the vendor directory, run:
        go mod vendor

And when I ignore (i just removed the vendor directory), it built and works normally. I think since the readme recommends go install and any version of go that supports install supports modules, the vendor directory isn't useful anymore.

ghost commented 3 years ago

I've opened a PR to remove the directory, see #35.

nishanths commented 3 years ago

I created a v5.0.1 tag just now, which should include this change.

5cat commented 2 years ago

Regarding the vendor directory. I'm currently trying to package the application for gentoo, having the vendor folder would really help as stated in here are there any plans to bring it back?

Otherwise I would need to host the vendor files somewhere for each version of the application which can get messy. What do you think?

nishanths commented 2 years ago

@5cat: Yes, we can do this. Couple of notes and questions:

5cat commented 2 years ago

For now I'm happy with the live ebuild solution since all I wanted is to use this wonderful tool. But If the tags/release solution is implemented I would of course create ebuilds for those, live versions are not that stable.