Commit Graph

38 Commits

Author SHA1 Message Date
Alexandre Badez
681d213837 google-cloud-sdk: 581.0.0 -> 583.0.0 2026-09-06 20:47:30 +02:00
Alexandre Badez
e9a6ce2b83 google-cloud-sdk: 579.0.0 -> 581.0.0 2026-08-24 10:50:05 +02:00
Jörg Thalheim
d894673522 google-cloud-sdk: fix byte-code never being loaded
postInstall compiled with -OO (*.opt-2.pyc), but the wrappers run python
without -O, so python looks for plain *.pyc and recompiled ~500 modules
on every invocation. `gcloud version` is ~3x faster with plain .pyc.

Add an installCheck so compileall and CLOUDSDK_PYTHON_ARGS stay in sync.
2026-08-21 13:33:44 +00:00
Marcus Ramberg
1254f2e21a google-cloud-sdk: add Djabx as a maintainer (#551400) 2026-08-11 08:35:08 +00:00
Alexandre Badez
56b1a2b039 google-cloud-sdk: add Djabx as a maintainer 2026-08-11 10:24:33 +02:00
Alexandre Badez
d5006fff77 google-cloud-sdk: 570.0.0 -> 579.0.0 2026-08-07 17:20:25 +02:00
Emily
faa77940a8 google-cloud-sdk: drop x86_64-darwin from update script 2026-07-15 03:58:17 +01:00
Emily
fdb820602b treewide: drop simple x86_64-darwin mentions
To reproduce:

    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: nix-x86_64-darwin
          language: nix
          rule:
            any:
              - pattern: "\"x86_64-darwin\""
                kind: list_expression > string_expression
              - pattern:
                  context: "{ \"x86_64-darwin\" = $EXPR; }"
                  selector: binding
              - pattern:
                  context: "{ x86_64-darwin = $EXPR; }"
                  selector: binding
          fix:
            template: ""
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-first-x86_64-darwin
          language: json
          rule:
            kind: object > pair:nth-child(1)
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandEnd: { regex: "," }
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-x86_64-darwin
          language: json
          rule:
            kind: object > pair
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandStart: { regex: "," }
        ' pkgs
    $ git restore pkgs/by-name/om/omnix/package.nix
    $ git diff --name-only -z \
        | nix shell nixpkgs/3b32825de172d0bc85664f495edb096b10862524#gnused \
            -c xargs -0 sed -i '/^$/N; /^\n\? \+$/d'
    $ treefmt
2026-07-15 03:58:16 +01:00
Omar Jatoi
e86e85b2a9 google-cloud-sdk: use vendored protobuf extensions only
Assisted-by: codex with gpt-5.5-high
2026-06-25 14:14:53 -04:00
Ryan Yin
585b8976b6 google-cloud-sdk: fix withExtraComponents build
withExtraComponents pulled in bundled-python3-unix through the alpha/beta -> core dependency closure, reintroducing Google's bundled Python after package.nix removed platform/bundledpythonunix.

Strip bundled-python3 components and dependency edges when update.sh generates components.json, remove their .install metadata, and add a gke-gcloud-auth-plugin passthru test.

This also reverts the Tcl/Tk component inputs added by ed4596bd96 (google-cloud-sdk: fix build, #468388), since the bundled Python component that needed _tkinter support is no longer generated.

Resolves #527193
2026-06-03 21:04:11 +08:00
Alexandre Badez
acf89eee2f google-cloud-sdk.python: 3.12 -> 3.14 2026-05-27 17:00:08 +02:00
Alexandre Badez
0811b44efb google-cloud-sdk: 565.0.0 -> 570.0.0 2026-05-27 16:52:58 +02:00
Alexandre Badez
45f6cfaa46 google-cloud-sdk: improve update script 2026-05-27 16:52:51 +02:00
Anders Christiansen Sørby
be8205a2a0 google-cloud-sdk: 552.0.0 -> 565.0.0 2026-04-24 16:00:04 +02:00
Gergő Gutyina
f1478654f9 google-cloud-sdk: use structuredAttrs instead of passAsFile (#498304) 2026-04-12 23:27:30 +00:00
Marcus Ramberg
7c99282e77 google-cloud-sdk: CVE-2026-27459 (#502987) 2026-03-27 13:23:04 +00:00
Hans Joachim Kliemeck
25b47d8e25 google-cloud-sdk: CVE-2026-27459 2026-03-24 10:56:31 +01:00
Omar Jatoi
207cdb9ef1 google-cloud-sdk: compile pyc at build time 2026-03-23 20:47:56 -04:00
nixpkgs-ci[bot]
79bdf2ff8d Merge master into staging-next 2026-03-12 06:18:47 +00:00
Stefan Frijters
c3f34fb1c5 google-cloud-sdk: use structuredAttrs instead of passAsFile 2026-03-09 14:33:04 +01:00
Álvaro Castillo
667cd1065d google-cloud-sdk: fix readlink noise in shell initialization 2026-03-04 10:24:00 +00:00
Sandro
6c6495bd50 treewide: remove exec bit from files that don't need it (#461314) 2026-02-16 14:56:12 +00:00
Stefan Frijters
37499343ae google-cloud-sdk: move env variable(s) into env for structuredAttrs 2026-02-11 10:43:47 +01:00
Rohit Singh
4cf3f9aae8 google-cloud-sdk: rewrite vendored CA bundles 2026-02-03 07:47:37 -05:00
Maevi
3126d71478 treewide: remove exec bit from files that don't need it
find . -type f -executable ! -name '*.sh' -exec grep -L '^#!' {} \; | xargs chmod a-x
2026-01-16 15:42:35 +01:00
gamoutatsumi
fb83045c59 google-cloud-sdk: 548.0.0 -> 552.0.0 2026-01-15 15:08:50 +09:00
Marcus Ramberg
3d94170a2b google-cloud-sdk: fix build (#469521) 2025-12-10 21:06:57 +00:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Alexandre Badez
ed4596bd96 google-cloud-sdk: fix build (#468388) 2025-12-10 11:10:03 +01:00
Alexandre Badez
8c61f12343 google-cloud-sdk: 537.0.0 -> 548.0.0 2025-12-03 11:41:55 +01:00
Ryan Yin
bb228f3929 google-cloud-sdk: components system -> stdenv.hostPlatform.system 2025-11-13 20:19:30 +08:00
Michael Tibben
9a2c712f1c google-cloud-sdk: stop python bytecode from being written 2025-10-23 14:42:10 +11:00
Michael Tibben
c788316a54 google-cloud-sdk: ensure determinism by not writing python bytecode 2025-10-17 08:58:34 +11:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Olivér Falvai
9878cd45a3 google-cloud-sdk: make NumPy optional
NumPy is an optional runtime dependency and only needed for IAP TCP forwarding:
https://cloud.google.com/iap/docs/using-tcp-forwarding#increasing_the_tcp_upload_bandwidth

The closure size is 2.05 GiB, of which 1.66 GiB is NumPy
2025-09-07 17:05:09 +02:00
Olivér Falvai
26fc91e1d1 google-cloud-sdk: 529.0.0 -> 537.0.0 2025-09-04 10:19:18 +02:00
Olivér Falvai
ff737fedfc google-cloud-sdk: move to pkgs/by-name 2025-09-04 10:07:25 +02:00