edgecomllc / eupf

5G User Plane Function (UPF) based on eBPF
Apache License 2.0
100 stars 20 forks source link

Can't build EUPF #526

Closed mandrade1stf closed 8 months ago

mandrade1stf commented 8 months ago

Describe the bug A clear and concise description of what the bug is.

I can't build EUPF

To Reproduce

I use steps to build, but:

root@open5gs-iperf04-6589c5768d-8szmr:/eupf# go build -v -o bin/eupf ./cmd/
cmd/api/rest/handler.go:8:2: no required module provides package github.com/edgecomllc/eupf/cmd/docs; to add it:
        go get github.com/edgecomllc/eupf/cmd/docs
root@open5gs-iperf04-6589c5768d-8szmr:/eupf# go get github.com/edgecomllc/eupf/cmd/docs
go: github.com/edgecomllc/eupf/cmd/docs: no matching versions for query "upgrade"
root@open5gs-iperf04-6589c5768d-8szmr:/eupf#

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Logs If applicable, add logs to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

pirog-spb commented 8 months ago

Hi @mandrade1stf

Please verify that previous step (go generate -v ./cmd/...) was successfully finished. Package eupf/cmd/docs is genereted during that step.

If you have swag utility error there, check that swag was installed and path to swag binary is in $PATH env variable.

--BR Alex

mandrade1stf commented 8 months ago

I recive this error: cmd/main.go:25: running "swag": exec: "swag": executable file not found in $PATH

I resolve with this command:

export PATH=$(go env GOPATH)/bin:$PATH

Thanks

pirog-spb commented 8 months ago

@mandrade1stf I've added hint to README concerning this issue.