Skip to content
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

Implement global option ignoreCache #59

Closed
hinshun opened this issue Mar 30, 2020 · 0 comments · Fixed by #78
Closed

Implement global option ignoreCache #59

hinshun opened this issue Mar 30, 2020 · 0 comments · Fixed by #78
Labels
exp/beginner Good for newcomers needs test

Comments

@hinshun
Copy link
Contributor

hinshun commented Mar 30, 2020

  • Define option ignoreCache in language/builtin.hlb and run go generate ./gen
  • Not sure if global options are supported yet, may need to complete that implementation

Plumbs this LLB option as a global HLB option:

https://github.com/moby/buildkit/blob/21ed8f5c1d078d1e28eac2d443fc791fff60eef9/client/llb/state.go#L412-L414

Usage:

fs foo() {
  image "alpine" with option {
    ignoreCache
  }
  run "echo hi" with option {
    ignoreCache
  }
}
@hinshun hinshun added the exp/beginner Good for newcomers label Mar 30, 2020
coryb added a commit to coryb/hlb that referenced this issue Apr 11, 2020
hinshun added a commit that referenced this issue Apr 11, 2020
[#59] add ignoreCache option for `run`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/beginner Good for newcomers needs test
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant