Comments (3)
@paketo-buildpacks/go-maintainers this looks like an issue with the integration test assuming a given order of go mod vendor
:
The tests expect one ordering (BurntSushi/toml
, then satori/go.uuid
)
<string>" Executing build process",
<string>" Running 'go mod vendor'",
<*matchers.MatchRegexpMatcher | 0xc0004e8d20>{
Regexp: " go: downloading github.com/BurntSushi/toml v.+",
Args: nil,
},
<*matchers.MatchRegexpMatcher | 0xc0004e8d50>{
Regexp: " go: downloading github.com/satori/go.uuid v.+",
Args: nil,
},
But the buildpack actually ran in a different order (satori/go.uuid
followed by BurntSushi/toml
)
Executing build process
Running 'go mod vendor'
go: downloading github.com/satori/go.uuid v1.1.0
go: downloading github.com/BurntSushi/toml v0.3.1
I think the test can most easily be fixed by having separate statements for each of the lines - essentially abandoning ordering.
This ordering is likely non-deterministic, hence why it passed in the PR.
from go-mod-vendor.
I am putting a pr together that changes the regex so that is expects one of those two in each slot allowing for both to be in either position.
from go-mod-vendor.
Another failure occurred: https://github.com/paketo-buildpacks/go-mod-vendor/actions/runs/6281163496
from go-mod-vendor.
Related Issues (20)
- Don't create an empty `mod-cache` layer
- Support for using private go modules HOT 5
- Require Go version specified in go.mod as a minimum version
- Buildpack should run to set BP_GO_VERSION for go-dist buildpack HOT 1
- Should go-mod-vendor provide a dependency for downstream buildpacks? HOT 3
- Rewrite with packit
- Use GOMODCACHE environment variable instead of setting GOPATH
- SBOM generation includes all dependencies in working dir, not just Go ones. HOT 1
- Go src code that compiles but leads to an incomplete executable logs cryptic error
- Refactor proposal: simplify detect logic when go.mod file does not exist. HOT 1
- Failure: Go get update workflow HOT 1
- `go mod graph` can run for a long time slowing down rebuilds HOT 1
- Use new io.paketo.stacks.tiny ID to indicate "tiny" HOT 3
- Failure: Approve bot PR workflow HOT 5
- Failure: Update GitHub config workflow HOT 1
- Discussion: go 1.21+ toolchain version
- Failure: Push Buildpackage workflow HOT 1
- Rename to go-mod-vendor
- Cannot build vendored go mod apps HOT 1
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 go-mod-vendor.