Skip to content

Commit

Permalink
drop checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Feb 21, 2022
1 parent 0da6f92 commit d86fcaa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
4 changes: 0 additions & 4 deletions packages/gatsby/src/schema/graphql-engine/bundle-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { printQueryEnginePlugins } from "./print-plugins"
import mod from "module"
import { WebpackLoggingPlugin } from "../../utils/webpack/plugins/webpack-logging"
import reporter from "gatsby-cli/lib/reporter"
import { generatePagesChecksum } from "../../utils/lmdb-pages-checksum"

type Reporter = typeof reporter

Expand Down Expand Up @@ -132,9 +131,6 @@ export async function createGraphqlEngineBundle(
"process.env.GATSBY_SKIP_WRITING_SCHEMA_TO_FILE": `true`,
SCHEMA_SNAPSHOT: JSON.stringify(schemaSnapshotString),
"process.env.GATSBY_LOGGER": JSON.stringify(`yurnalist`),
"process.env.GATSBY_PAGES_CHECKSUM": JSON.stringify(
generatePagesChecksum()
),
}),
process.env.GATSBY_WEBPACK_LOGGING?.includes(`query-engine`) &&
new WebpackLoggingPlugin(rootDir, reporter, isVerbose),
Expand Down
10 changes: 0 additions & 10 deletions packages/gatsby/src/schema/graphql-engine/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
// @ts-ignore
} from ".cache/query-engine-plugins"
import { initTracer } from "../../utils/tracer"
import { generatePagesChecksum } from "../../utils/lmdb-pages-checksum"

type MaybePhantomActivity =
| ReturnType<typeof reporter.phantomActivity>
Expand Down Expand Up @@ -90,15 +89,6 @@ export class GraphQLEngine {
// Note: skipping inference metadata because we rely on schema snapshot
await build({ fullMetadataBuild: false, parentSpan: wrapActivity.span })

if (process.env.GATSBY_PAGES_CHECKSUM) {
const engineChecksum = generatePagesChecksum()
if (engineChecksum !== process.env.GATSBY_PAGES_CHECKSUM) {
reporter.error(
`Pages checksum doesn't match: \n - calculated: "${engineChecksum}"\n - expected: "${process.env.GATSBY_PAGES_CHECKSUM}"`
)
}
}

return new GraphQLRunner(store)
} finally {
wrapActivity.end()
Expand Down
15 changes: 0 additions & 15 deletions packages/gatsby/src/utils/lmdb-pages-checksum.ts

This file was deleted.

0 comments on commit d86fcaa

Please sign in to comment.