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

"--locked" flag ignored in "cross build" #346

Closed
RalfJung opened this issue Nov 9, 2019 · 4 comments · Fixed by #348
Closed

"--locked" flag ignored in "cross build" #346

RalfJung opened this issue Nov 9, 2019 · 4 comments · Fixed by #348
Labels

Comments

@RalfJung
Copy link

RalfJung commented Nov 9, 2019

In japaric/xargo#264 I am trying to ensure that xargo's lockfile is up-to-date on CI, so I added --locked to our cross build invocation. However, that seems to have no effect: even with a stale lockfile, and even with no lockfile at all, the build succeeds!

Silently ignoring important CLI flags like that seems quite surprising, so I was wondering if this is deliberate and if there's any way to do a locked build here.

@reitermarkus
Copy link
Member

Not sure why it would do that. All flags are passed through to cargo in the container. You can check that with the --verbose flag.

@RalfJung
Copy link
Author

Maybe something runs cargo update or some similar command first that would result in the lockfile not being any more the original one?

@reitermarkus
Copy link
Member

@RalfJung
Copy link
Author

Yes. That one should likely also have --locked when that flag is set for the main command.

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

Successfully merging a pull request may close this issue.

3 participants