Code Monkey home page Code Monkey logo

Comments (8)

pombredanne avatar pombredanne commented on September 27, 2024 1

@marco-m I guess https://pkg.go.dev/ should run scancode-toolkit for better results ;)

from packer-plugin-goss.

fishnix avatar fishnix commented on September 27, 2024

Thanks for the report. PR #44 adds a LICENSE file but it seems like pkg.go.dev stopped pulling this repo at v1.4.0 😕

I'm poking around to see if it's something with the mod file or rep; I haven't seen this problem before....

from packer-plugin-goss.

fishnix avatar fishnix commented on September 27, 2024

It looks like the problem is the update to v2.x.x

https://blog.golang.org/v2-go-modules

This major version update was necessitated by packaging differences for the binary (its zipped by the github action)... I'm not sure this is important enough to rework the structure of the repository for now.

from packer-plugin-goss.

marco-m avatar marco-m commented on September 27, 2024

@fishnix I dug (once more, I keep forgetting) in the Go modules documentation.
I think that this should be fixed by replacing

module github.com/YaleUniversity/packer-provisioner-goss

with

module github.com/YaleUniversity/packer-provisioner-goss/v2

in the go.mod file (and update imports paths as needed).

The problem is not only that the documentation is not displayed; the problem is that go get of anything >= v2.0 currently fails:

go get github.com/YaleUniversity/[email protected]
go get: github.com/YaleUniversity/[email protected]: invalid version:
  module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

Your comment

I'm not sure this is important enough to rework the structure of the repository for now.

makes me think that you were referring to having a directory per version, as suggested in the blog post. Luckily, that is not mandatory.

from packer-plugin-goss.

fishnix avatar fishnix commented on September 27, 2024

makes me think that you were referring to having a directory per version, as suggested in the blog post. Luckily, that is not mandatory.

yes, I read the doc as having to change the structure of the repository. if we just need to update the go.mod, that works for me. I can give it a shot.

from packer-plugin-goss.

marco-m avatar marco-m commented on September 27, 2024

This is the reference: golang/go#35732 (comment)

from packer-plugin-goss.

fishnix avatar fishnix commented on September 27, 2024

@marco-m still no dice from what I can tell after that change. Someone will have to spend some time poking at this I think.

> GOPROXY=https://proxy.golang.org GO111MODULE=on go get github.com/YaleUniversity/[email protected]
go get: github.com/YaleUniversity/[email protected]: reading https://proxy.golang.org/github.com/%21yale%21university/packer-provisioner-goss/@v/v3.0.2.info: 410 Gone
	server response: not found: github.com/YaleUniversity/[email protected]: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v3

from packer-plugin-goss.

marco-m avatar marco-m commented on September 27, 2024

@fishnix I think I mislead you with the go get example above #41 (comment).

Your changes do work:

$ go get github.com/YaleUniversity/packer-provisioner-goss/v3
go: downloading github.com/YaleUniversity/packer-provisioner-goss/v3 v3.0.2
go: downloading github.com/hashicorp/packer-plugin-sdk v0.0.11
...

and the effect of this go get [1] is that finally https://pkg.go.dev/github.com/YaleUniversity/packer-provisioner-goss got a

The highest tagged major version is v3.

and following that link: https://pkg.go.dev/github.com/YaleUniversity/packer-provisioner-goss/v3 YEAH

[1] see https://go.dev/about#adding-a-package-h2

from packer-plugin-goss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.