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

Add golang back to nix dev environment and pin v1.23 #33275

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

6543
Copy link
Member

@6543 6543 commented Jan 14, 2025

Fix regression of #32559

@kerwin612 I dont have access to gitpod so please test yourselfe it it works ...

In any case I would suggest to prefere the system that is open to work rather than some closed dev environmend nobody can access ... but thats just my personal thought. PS: I tryed to get gitpod access.... to verify it.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 14, 2025
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 14, 2025
@6543 6543 changed the title Add golang back to nix dev environment Add golang back to nix dev environment and pin v1.23 Jan 14, 2025
@wxiaoguang
Copy link
Contributor

If it is a "regression", what's the regression problem? For example: is there something broken? Sorry I do not use gitpod so I have no idea, but I still have the question: what's the best practice? Keeping adding and removing the version doesn't seem to be the answer ....

@6543
Copy link
Member Author

6543 commented Jan 15, 2025

there was a tooling issue and from the loogs it was the problem that there was an old version pned (v1.22) so this pull not only adds it back but also pin the new version v1.23 witch should have been bumped with the bump at:

gitea/go.mod

Line 3 in fcd0962

go 1.23

so this should be the right fix but i can not verify it ... but not having this pin will make gitea non compilable on some of my systems ... and i guess a lot other nixos users ...

@6543
Copy link
Member Author

6543 commented Jan 16, 2025

@wxiaoguang beside I can not find any documentation that gitpod implizite uses nix flakes ... so as long as we dont expizite state that in our gitpod config (witch we dont), flake.nix changes should never have any effect in the first place

@techknowlogick
Copy link
Member

@6543 gitpod detects usage of flakes and loads them. The gitpod issue is that while it installs the nix version, the env vars point at a pre-installed goroot, thus the toolchain is attempting to use a different version. I tested a fix for this and will send it to this PR

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 16, 2025
@6543
Copy link
Member Author

6543 commented Jan 16, 2025

gitpod detects usage of flakes and loads them

that is a new feature ... thanks i can not test gitpod because it is now a payed service?!?

@techknowlogick
Copy link
Member

that is a new feature ... thanks i can mot test gitpod because it is now a payed service?!?

I still have a "classic" account that supposedly will be removed in April. It's still good to have those env vars set anyway in case other services have multiple versions of go installed.

@techknowlogick techknowlogick added topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Jan 17, 2025
@techknowlogick techknowlogick merged commit 1342d48 into go-gitea:main Jan 17, 2025
25 of 26 checks passed
@GiteaBot GiteaBot added this to the 1.24.0 milestone Jan 17, 2025
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jan 20, 2025
* giteaofficial/main:
  [skip ci] Updated licenses and gitignores
  Fix typo in documentation of GetBranchNames() (go-gitea#33330)
  Fix Account linking page (go-gitea#33325)
  Fix parentCommit invalid memory address or nil pointer dereference. (go-gitea#33204)
  Make tracked time representation display as hours (go-gitea#33315)
  [skip ci] Updated translations via Crowdin
  [skip ci] Updated translations via Crowdin
  Fix push message behavior (go-gitea#33215)
  Add golang back to nix dev environment and pin v1.23 (go-gitea#33275)
  Trivial fixes (go-gitea#33304)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants