build error #335

Closed
opened 2026-01-19 18:29:55 +00:00 by michael · 1 comment
Owner

Originally created by @emmaanuel on GitHub.

Trying to build the app from a fresh ubuntu install.

~/src/github.com/dutchcoders/transfer.sh$ go build -o transfersh main.go

github.com/dutchcoders/transfer.sh/vendor/github.com/VojtechVitek/ratelimit

vendor/github.com/VojtechVitek/ratelimit/throttle.go:39: r.Context undefined (type *http.Request has no field or method Context)

Did I miss something ?

Originally created by @emmaanuel on GitHub. Trying to build the app from a fresh ubuntu install. ~/src/github.com/dutchcoders/transfer.sh$ go build -o transfersh main.go # github.com/dutchcoders/transfer.sh/vendor/github.com/VojtechVitek/ratelimit vendor/github.com/VojtechVitek/ratelimit/throttle.go:39: r.Context undefined (type *http.Request has no field or method Context) Did I miss something ?
Author
Owner

@emmaanuel commented on GitHub:

I switch to go1.7 and it's working.

@emmaanuel commented on GitHub: I switch to go1.7 and it's working.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#335