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

Document how to generate first version of lock file #1697

Open
qdii opened this issue Oct 21, 2024 · 1 comment
Open

Document how to generate first version of lock file #1697

qdii opened this issue Oct 21, 2024 · 1 comment

Comments

@qdii
Copy link

qdii commented Oct 21, 2024

Describe the bug
When running bazel run @bullseye://.lock without an existing bullseye.lock.json file present, the command fails with the error:

Error in read: java.io.FileNotFoundException: /home/qdii/dev/rules_distroless/e2e/smoke/bullseye.lock.json (No such file or directory)

To Reproduce

  1. Clone the e2e smoke test repository.
  2. Remove or update .bzlversion to use the latest bazel version
  3. Remove .bullseye.lock.json
  4. Run bazel run @bullseye//:lock to regenerate it
  5. Try bazel run @bullseye_nolock//:lock too

Observe the command failing

Expected behavior
bullseye.lock.json is an output of the command at stage 4 or 5

@qdii
Copy link
Author

qdii commented Oct 24, 2024

Apparently creating the file with this template works:

{
        "packages": [],
        "version": 1
}

I think it would be nice to add it to some documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@qdii and others