cugu / gocap Goto Github PK
View Code? Open in Web Editor NEWList your dependencies capabilities and monitor if updates require more capabilities.
License: GNU General Public License v3.0
List your dependencies capabilities and monitor if updates require more capabilities.
License: GNU General Public License v3.0
in my local project (that means directory with go.mod & go.sum), when I run
cd myWonderfullProject
ls
go.mod go.sum main.go
gocap generate .
could not parse package path
I expect that go.cap has been generated with all modules (direct & transitive) pined into my go.mod & go.sum.
This looks like a handy tool, but it hasn't been touched in a while. Is it still supported?
I get the following errors when I run it:
$ gocap generate .
could not parse package path
$ gocap generate ./...
invalid character '{' after top-level value
I'm running from within a go.mod
managed directory where dependencies are vendored.
This issue provides visibility into Renovate updates and their statuses. Learn more
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
Thanks for the such a cool project! Just have been trying this out!
I think it had better to call generate
command under the hood if go.cap
file does not exit. Or we can rephrase this warning to: go.cap file does not exist, consider run generate command
for example.
$ gocap check .
go.cap file does not exist
What do you think?
For example for my local project:
mkdir -p /tmp/myWonderfullProject/cmd/myWonderfullProject
cd /tmp/myWonderfullProject
echo 'package main
import (
"net/http"
"myWonderfullProject"
)
func main() {
http.ListenAndServe(":8080", myWonderfullProject.Router())
}' > /tmp/myWonderfullProject/cmd/myWonderfullProject/main.go
echo 'package myWonderfullProject
import (
"net/http"
"github.com/gin-gonic/gin"
)
func Router() http.Handler {
r := gin.Default()
r.GET("/ping", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "pong",
})
})
return r
}' > /tmp/myWonderfullProject/router.go
go mod tidy
tree /tmp/myWonderfullProject/
/tmp/myWonderfullProject/
├── cmd
│ └── myWonderfullProject
│ └── main.go
├── go.mod
├── go.sum
└── router.go
gocap generate /tmp/myWonderfullProject/cmd/myWonderfullProject
myWonderfullProject/cmd/myWonderfullProject (network)
github.com/gin-contrib/sse (file, network)
github.com/gin-gonic/gin (file, network, runtime)
github.com/gin-gonic/gin/binding (network, file)
github.com/gin-gonic/gin/render (network)
github.com/go-playground/universal-translator (file)
github.com/go-playground/validator/v10 (file, network)
golang.org/x/sys/unix (syscall, runtime)
myWonderfullProject (network) <------ filter this package on generate & check
Is it possible to filter all the packages from myWonderfullProject or at least myWonderfullProject (network)
in this example on generate
and on check
steps?
Because, I want to avoid breaking my CI when I develop or refactor source code and also avoid updating too frequently the go.cap (because just add local package)?
From my point of view, this tool seems great for watching the external dependencies when I upgrade them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.