vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.21k stars 1.81k forks source link

[turborepo] remote cache not hitting in bitbucket pipeline #3005

Closed lenhosseini closed 7 months ago

lenhosseini commented 1 year ago

What version of Turborepo are you using?

1.6.3

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Mac

Describe the Bug

Remote cache never hits in bitbucket pipeline, but says that remote cache is enabled

SCR-20221214-l2y

Remote caching does work locally after deleting local cache

rm -rf ./node_modules/.cache/turbo

Expected Behavior

After running the pipeline once, running it again without changes will lead to turbo repo remote caching hit

To Reproduce

Steps to reporoduce

bitbucket-pipelines.yml

image: node:16

pipelines:
  branches:
    master:
      - step:
          name: 'Install, Format & Lint, Build'
          caches:
            - node
          script:
            - yarn install --frozen-lockfile
            - yarn build

turbo.json

{
    "$schema": "https://turbo.build/schema.json",
    "pipeline": {
        "build": {
            "dependsOn": ["^build"],
            "outputs": ["dist/**", ".next/**"]
        },
    }
}

Reproduction Repo

No response

AnnaVih commented 1 year ago

I can not even get to the point of seeing - the remote cache is enabled.

arlyon commented 7 months ago

Since this issue was opened we have rewritten the entire tool into rust and fixed a pile of bugs. Please feel free to reopen if this is still an issue on 1.12.5.