tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.28k stars 253 forks source link

bug: make tailcall build offline #1722

Closed tusharmath closed 4 months ago

tusharmath commented 6 months ago

Currently when you try to build Tailcall without internet it throws up the following error

error: failed to run custom build command for `async-graphql-extension-apollo-tracing v3.2.14 (https://github.com/tailcallhq/async_graphql_apollo_studio_extension/#b7537c56)`

Caused by:
  process didn't exit successfully: `/Users/tushar/Documents/Projects/tailcall/target/debug/build/async-graphql-extension-apollo-tracing-072eed78a261821c/build-script-build` (exit status: 1)
  --- stderr
  Error: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("usage-reporting.api.apollographql.com")), port: None, path: "/proto/reports.proto", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: nodename nor servname provided, or not known" })) }
tusharmath commented 6 months ago

/bounty 50$

algora-pbc[bot] commented 6 months ago

## 💎 $50 bounty • Tailcall Inc.

### Steps to solve: 1. Start working: Comment /attempt #1722 with your implementation plan 2. Submit work: Create a pull request including /claim #1722 in the PR body to claim the bounty 3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

🙏 Thank you for contributing to tailcallhq/tailcall! 🧐 Checkout our guidelines before you get started.

tusharmath commented 6 months ago

@abhishek818 Is this the only way we can fix the issue? The idea was that a developer should be able to build Tailcall CLI locally without depending on the internet once all the dependencies are installed. Vendoring the dependencies like this seems like a bit of maintenance overhead for us.

abhishek818 commented 6 months ago

@tusharmath Alternatives seems to be mirroring crates/deps using panamax and romt. Found few stackoverflow answers recommending cargo vendor for offline builds and starred repos using vendor. I went with vendoring only git revision deps.

github-actions[bot] commented 4 months ago

Action required: Issue inactive for 30 days. Status update or closure in 7 days.

github-actions[bot] commented 4 months ago

Issue closed after 7 days of inactivity.