Comments (8)
@marco-m I guess https://pkg.go.dev/ should run scancode-toolkit for better results ;)
from packer-plugin-goss.
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.
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.
@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.
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.
This is the reference: golang/go#35732 (comment)
from packer-plugin-goss.
@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.
@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)
- Debug option is invalid for `goss validate` HOT 1
- Need automated build for binaries HOT 9
- Set HTTP_PROXY gets ignored for goss binary download HOT 2
- Issue when using HCL2 for packer templates HOT 11
- Update plugin protocol
- Packer throwing error while provisioning goss during cicd. HOT 1
- No test error details during packer build HOT 2
- packer validate breaks with unknown configuration key HOT 3
- Running into issue while Testing Windows AMI HOT 2
- [Feature Request] Add support for usage of required_plugins HOT 5
- Please re-add arm64 binaries to release
- PR Proposal: update to latest Packer SDK and modern plugin support HOT 1
- Provision with Packer and Chef HOT 1
- Packer is grumpy about repo name. HOT 2
- Rename repository to support packer init HOT 1
- Add dependabot for github workflow and go dependencies HOT 1
- Passing ENV variable to goss plugin HOT 4
- Ability to download goss cli from somewhere else rather than github.com HOT 2
- amd64 for linux missing on the release HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-goss.