Change to CHI misses some updates required for windows #6640

Closed
opened 2025-11-02 07:02:11 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @blazecoding2009 on GitHub (Jan 5, 2021).

  • Gitea version (or commit ref): latest
  • Git version:
  • Operating system: Windows
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [X ] No
  • Log gist:

Description

Got this error when I run go run main.go

# code.gitea.io/gitea/modules/auth/sso
modules\auth\sso\sspi_windows.go:69:27: undefined: ctx
modules\auth\sso\sspi_windows.go:79:56: undefined: ctx
modules\auth\sso\sspi_windows.go:82:37: undefined: ctx
modules\auth\sso\sspi_windows.go:87:15: undefined: ctx
modules\auth\sso\sspi_windows.go:88:3: undefined: ctx
modules\auth\sso\sspi_windows.go:89:3: undefined: ctx
modules\auth\sso\sspi_windows.go:90:3: undefined: ctx
modules\auth\sso\sspi_windows.go:94:37: undefined: ctx
modules\auth\sso\sspi_windows.go:113:24: too many arguments in call to s.newUser
modules\auth\sso\sspi_windows.go:113:25: undefined: ctx
modules\auth\sso\sspi_windows.go:113:24: too many errors```
## Screenshots

<!-- **If this issue involves the Web Interface, please include a screenshot** -->
Originally created by @blazecoding2009 on GitHub (Jan 5, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): latest - Git version: - Operating system: Windows <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X ] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description Got this error when I run go run main.go ```C:\Users\arnna\Desktop\CodeShare\App>go run main.go # code.gitea.io/gitea/modules/auth/sso modules\auth\sso\sspi_windows.go:69:27: undefined: ctx modules\auth\sso\sspi_windows.go:79:56: undefined: ctx modules\auth\sso\sspi_windows.go:82:37: undefined: ctx modules\auth\sso\sspi_windows.go:87:15: undefined: ctx modules\auth\sso\sspi_windows.go:88:3: undefined: ctx modules\auth\sso\sspi_windows.go:89:3: undefined: ctx modules\auth\sso\sspi_windows.go:90:3: undefined: ctx modules\auth\sso\sspi_windows.go:94:37: undefined: ctx modules\auth\sso\sspi_windows.go:113:24: too many arguments in call to s.newUser modules\auth\sso\sspi_windows.go:113:25: undefined: ctx modules\auth\sso\sspi_windows.go:113:24: too many errors``` ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the skip-changelogtype/bug labels 2025-11-02 07:02:11 -06:00
Author
Owner

@techknowlogick commented on GitHub (Jan 5, 2021):

My recent PR https://github.com/go-gitea/gitea/pull/14260 won't resolve this, however it'll catch similar issues in the future, and it successfully replicates this issue which is a good test that the PR is good to have.

@techknowlogick commented on GitHub (Jan 5, 2021): My recent PR https://github.com/go-gitea/gitea/pull/14260 won't resolve this, however it'll catch similar issues in the future, and it successfully replicates this issue which is a good test that the PR is good to have.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6640