Skip to content

fix: Update flake.lock to fix Go build #6173

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

Merged
merged 1 commit into from
Feb 13, 2023
Merged

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Feb 13, 2023

Related: #5968

This PR fixes build problems with Go 1.20. I can see this error when I enter the coder directory.

       … while calling anonymous lambda
       at /nix/store/vgx3678yb41cb8g2g66nlj1alf3ksh92-source/pkgs/stdenv/generic/make-derivation.nix:192:81:
          191|   checkDependencyList = checkDependencyList' [];
          192|   checkDependencyList' = positions: name: deps: lib.flip lib.imap1 deps (index: dep:
             |                                                                                 ^
          193|     if lib.isDerivation dep || isNull dep || builtins.typeOf dep == "string" || builtins.typeOf dep == "path" then dep
       … while evaluating call site
       at /nix/store/vgx3678yb41cb8g2g66nlj1alf3ksh92-source/pkgs/stdenv/generic/make-derivation.nix:193:8:
          192|   checkDependencyList' = positions: name: deps: lib.flip lib.imap1 deps (index: dep:
          193|     if lib.isDerivation dep || isNull dep || builtins.typeOf dep == "string" || builtins.typeOf dep == "path" then dep
             |        ^
          194|     else if lib.isList dep then checkDependencyList' ([index] ++ positions) name dep
       … while calling 'isDerivation'
       at /nix/store/vgx3678yb41cb8g2g66nlj1alf3ksh92-source/lib/attrsets.nix:427:18:
          426|   */
          427|   isDerivation = x: x.type or null == "derivation";
             |                  ^
          428|
       error: undefined variable 'go_1_20'
       at /nix/store/xm53r3d6cc8vn9vw1pmcm331xpv72aqa-source/flake.nix:27:13:
           26|             go-migrate
           27|             go_1_20
             |             ^
           28|             golangci-lint

@mtojek mtojek self-assigned this Feb 13, 2023
@mtojek mtojek marked this pull request as ready for review February 13, 2023 10:02
@mtojek mtojek requested review from kylecarbs and mafredri February 13, 2023 10:02
@mtojek mtojek merged commit a064678 into coder:main Feb 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants