Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined: http.SameSite #2437

Closed
sriharikapu opened this issue Jul 18, 2020 · 1 comment
Closed

undefined: http.SameSite #2437

sriharikapu opened this issue Jul 18, 2020 · 1 comment

Comments

@sriharikapu
Copy link

Description

Installation failure

How to reproduce

sudo go get -u github.com/gin-gonic/gin

Expectations

This is a dependency for one of my projects

Actual result

image


## Environment

- go version: go version go1.10.4 linux/amd64
- gin version (or commit ref): go version go1.10.4 linux/amd64
- operating system: ubuntu 18
@2HgO
Copy link

2HgO commented Jul 18, 2020

The http.SameSite type was introduced in go1.11, that's why your go version cannot install the latest gin version. The earliest gin version that does not use this type is #2109 so you should probably install that or an even earlier version instead. As outlined in the docs, the latest gin version requires go1.11+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants