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

go_1_19: init at 1.19 #181797

Merged
merged 1 commit into from
Aug 3, 2022
Merged

go_1_19: init at 1.19 #181797

merged 1 commit into from
Aug 3, 2022

Conversation

zowoq
Copy link
Contributor

@zowoq zowoq commented Jul 17, 2022

Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

https://go.dev/doc/go1.19

@zowoq
Copy link
Contributor Author

zowoq commented Jul 17, 2022

creds-test.patch was upstreamed.

 stdenv.mkDerivation rec {
   pname = "go";
-  version = "1.18.4";
+  version = "1.19rc2";
 
   src = fetchurl {
     url = "https://go.dev/dl/go${version}.src.tar.gz";
-    sha256 = "sha256-RSWqaw487LV4RfQGCnB1qvyat1K7e2tM+KIS1DB44eQ=";
+    sha256 = "sha256-xo1wGaaguYUq4Oltfn3rdySSojJy/W0Tr+BbQMkS5Rs=";
   };
 
   strictDeps = true;
@@ -176,11 +176,10 @@
     ./remove-tools-1.11.patch
     ./ssl-cert-file-1.16.patch
     ./remove-test-pie-1.15.patch
-    ./creds-test.patch
     ./skip-chown-tests-1.16.patch
     ./skip-external-network-tests-1.16.patch
     ./skip-nohup-tests.patch
-    ./skip-cgo-tests-1.15.patch
+    ./skip-cgo-tests-1.19.patch
     ./go_no_vendor_checks-1.16.patch
   ];
 

@ofborg ofborg bot added the 11.by: package-maintainer This PR was created by the maintainer of the package it changes label Aug 2, 2022
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should take this opportunity to convert the file into a generic one. Copying it with every new go release just duplicates code.

Comment on lines +21980 to +21982
buildGo119Package = darwin.apple_sdk_11_0.callPackage ../development/go-packages/generic {
go = buildPackages.go_1_19;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need thi?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need thi?

If you are asking if we need buildGo119Package, as long as we are still using buildGoPackage we need a versioned equivalent.

@zowoq zowoq marked this pull request as ready for review August 2, 2022 19:43
@zowoq zowoq changed the title go_1_19: init at 1.19rc2 go_1_19: init at 1.19 Aug 2, 2022
@zowoq zowoq marked this pull request as draft August 2, 2022 19:46
@zowoq zowoq marked this pull request as ready for review August 2, 2022 20:09
@zowoq
Copy link
Contributor Author

zowoq commented Aug 2, 2022

I think we should take this opportunity to convert the file into a generic one. Copying it with every new go release just duplicates code.

This has been discussed before and the go maintainers were fine with the status quo. Even if we do decide to switch to a generic style derivation it doesn't need to happen now.

@zimbatm
Copy link
Member

zimbatm commented Aug 3, 2022

Result of nixpkgs-review pr 181797 run on x86_64-linux 1

1 package built:
  • go_1_19

@Mic92
Copy link
Member

Mic92 commented Aug 3, 2022

I think we should take this opportunity to convert the file into a generic one. Copying it with every new go release just duplicates code.

This has been discussed before and the go maintainers were fine with the status quo. Even if we do decide to switch to a generic style derivation it doesn't need to happen now.

Yeah with 2-3 go derivations is just simply easier to only have too look at one file rather than a generic function and one per go version.

@Mic92 Mic92 merged commit 168d1c5 into NixOS:master Aug 3, 2022
@zowoq zowoq deleted the go119 branch August 3, 2022 10:56
@xvello
Copy link
Contributor

xvello commented Aug 9, 2022

Thanks for the packaging work @zowoq! Do you know whether this will be backported in 22.05 or not?

@Mic92
Copy link
Member

Mic92 commented Aug 9, 2022

@xvello I don't see why not. Feel to create a backport PR.

@xvello
Copy link
Contributor

xvello commented Aug 9, 2022

Thanks, I'll look into how to do so.

rkaippully pushed a commit to awakesecurity/nixpkgs that referenced this pull request Jul 3, 2023
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Jul 3, 2023
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Jul 14, 2023
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Jul 15, 2023
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Jul 21, 2023
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Aug 7, 2023
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Sep 7, 2023
awake-bot pushed a commit to awakesecurity/nixpkgs that referenced this pull request Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants