Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

update_dependencies in run script fails to detect dependencies on macOS #76

Open
bartaz opened this issue Sep 5, 2018 · 2 comments
Open

Comments

@bartaz
Copy link

bartaz commented Sep 5, 2018

Originally reported as canonical/snapcraft.io#1057

When running ./run script on macOS dependencies are not correctly detected. Manually cleaning hash files or running ./run clean is required to install new dependencies.

./run serve
 
Yarn dependencies haven't changed. To force an update, delete .yarn.canonical-webteam-snapcraft-flask-048191a3.hash.
bash: md5: command not found
xargs: md5: No such file or directory
Pip dependencies haven't changed. To force an update, delete .pip.canonical-webteam-snapcraft-flask-048191a3.hash.

It seems that for some types of dependencies (pip at least: https://github.com/canonical-websites/snapcraft.io/blob/master/run#L322) md5 command is run inside of docker image, while md5_command is detected in host system.

If host system uses different md5 command then ubuntu in docker, detecting dependencies will fail.

@tbille
Copy link
Contributor

tbille commented Oct 9, 2018

@bartaz have you seen this issue again, please reach out if you have.

@bartaz
Copy link
Author

bartaz commented Oct 9, 2018

I don't think we had any dependency changes recently for me to notice, but I'm pretty sure it's still around.

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

No branches or pull requests

2 participants