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

Improve error message when the user tries to freeze a Dockerfile to Seqera Containers #723

Open
itrujnara opened this issue Oct 28, 2024 · 1 comment

Comments

@itrujnara
Copy link

Reproduction

Run the command

wave -f Dockerfile --freeze

with any valid Dockerfile.

The current output is

Wave invalid response: [400] {"message":"Attribute `buildRepository` must be specified when using freeze mode [1]"}

Explanation

The error message does not explain the source of the issue (especially since --freeze works without --build-repository in some use cases).

Proposed solution

Change the error message to the following:

Attribute `buildRepository` must be specified when using freeze mode with a Dockerfile. Only Conda and pip packages can be frozen to Seqera Containers.

or OWTTE.

@munishchouhan
Copy link
Member

munishchouhan commented Oct 28, 2024

@itrujnara thanks for reporting the issue
--freeze works without --build-repository only for conda packages and not for custom Dockerfile
That is a special case, where we use community.seqera.io as --build-repository to support community.

freeze main purpose is to store for long duration, in user specified repository
--build-repository is always required when using --freeze

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