Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(flake.nix): removepreBuild to fix building on Linux#15259

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
coadler merged 1 commit intomainfromcolin/nix-flake-linux
Oct 29, 2024

Conversation

coadler
Copy link
Contributor

On Linux, network access isn't available inside of a build. It seems to build correctly without thispreBuild hook.

See:#14728 (comment)
cc@joobisb

$ nix developwarning: Git tree '/home/colin/Projects/coder/coder' is dirtyerror: builder for '/nix/store/wg14v4ylmjrf2krlxbk6a049nvc23zad-protoc-gen-go.drv' failed with exit code 1;       last 10 log lines:       > calling 'postUnpack' function hook '_updateSourceDateEpochFromSourceRoot'       > Running phase: patchPhase       > Running phase: updateAutotoolsGnuConfigScriptsPhase       > Running phase: configurePhase       > calling 'preConfigure' function hook '_multioutConfig'       > Running phase: buildPhase       > evaling implicit 'preBuild' string hook       > go: github.com/golang/protobuf@v1.5.0: Get "https://proxy.golang.org/github.com/golang/protobuf/@v/v1.5.0.info": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:33535->[::1]:53: read: connection refused       > go: github.com/google/go-cmp@v0.5.5: Get "https://proxy.golang.org/github.com/google/go-cmp/@v/v0.5.5.info": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:54889->[::1]:53: read: connection refused       > /nix/store/5r0df66ikad3xw06azlqvswcvncll8wa-stdenv-linux/setup: line 193: pop_var_context: head of shell_variables not a function context       For full logs, run 'nix log /nix/store/wg14v4ylmjrf2krlxbk6a049nvc23zad-protoc-gen-go.drv'.error: 1 dependencies of derivation '/nix/store/z9ik49f82idmhi99ra9zvd3q38cqsg9s-nix-shell-env.drv' failed to build

joobisb reacted with thumbs up emoji
On Linux, network access isn't available inside of a build. It seems tobuild correctly without this `preBuild` hook.See:#14728 (comment)```$ nix developwarning: Git tree '/home/colin/Projects/coder/coder' is dirtyerror: builder for '/nix/store/wg14v4ylmjrf2krlxbk6a049nvc23zad-protoc-gen-go.drv' failed with exit code 1;       last 10 log lines:       > calling 'postUnpack' function hook '_updateSourceDateEpochFromSourceRoot'       > Running phase: patchPhase       > Running phase: updateAutotoolsGnuConfigScriptsPhase       > Running phase: configurePhase       > calling 'preConfigure' function hook '_multioutConfig'       > Running phase: buildPhase       > evaling implicit 'preBuild' string hook       > go: github.com/golang/protobuf@v1.5.0: Get "https://proxy.golang.org/github.com/golang/protobuf/@v/v1.5.0.info": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:33535->[::1]:53: read: connection refused       > go: github.com/google/go-cmp@v0.5.5: Get "https://proxy.golang.org/github.com/google/go-cmp/@v/v0.5.5.info": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:54889->[::1]:53: read: connection refused       > /nix/store/5r0df66ikad3xw06azlqvswcvncll8wa-stdenv-linux/setup: line 193: pop_var_context: head of shell_variables not a function context       For full logs, run 'nix log /nix/store/wg14v4ylmjrf2krlxbk6a049nvc23zad-protoc-gen-go.drv'.error: 1 dependencies of derivation '/nix/store/z9ik49f82idmhi99ra9zvd3q38cqsg9s-nix-shell-env.drv' failed to build```
@coadlercoadler self-assigned thisOct 28, 2024
Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

LGTM

On Linux, network access isn't available inside of a build.
@coadler do you have a reference for this?

@coadler
Copy link
ContributorAuthor

coadler commentedOct 29, 2024
edited
Loading

@dannykopping

LGTM

On Linux, network access isn't available inside of a build.
@coadler do you have a reference for this?

I foundthis which seems to have run into the same issue with OSX vs Linux builds.

dannykopping reacted with thumbs up emoji

@joobisb
Copy link
Contributor

@coadler Thanks for fixing this!

@coadlercoadler merged commitceb168b intomainOct 29, 2024
26 checks passed
@coadlercoadler deleted the colin/nix-flake-linux branchOctober 29, 2024 17:57
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 29, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

Assignees

@coadlercoadler

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@coadler@joobisb@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp