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

[bug] Empty source conandata.yml file gives error with scm_to_conandata during recipe export #8209

Closed
SeanSnyders opened this issue Dec 15, 2020 · 2 comments · Fixed by #8215
Assignees
Milestone

Comments

@SeanSnyders
Copy link

SeanSnyders commented Dec 15, 2020

Environment Details (include every applicable attribute)

  • Operating System+version: macOS OSX 10.15.6 (Darwin machine_name 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64)
  • Compiler+version: n/a
  • Conan version: 1.30.2
  • Python version: 3.9.1

Steps to reproduce (Include if Applicable)

The goal was to have a recipe without (currently) any other data/settings in the conandata.yml, but use the SCM feature.

  1. Simple conan recipe conanfile.py but using SCM feature and value of entry url, and revision both set to auto.
  2. Add empty conandata.yml next to conanfile.py
  3. update ~/.conan/conan.conf to set scm_to_conandata = True
  4. export recipe conan export . user/testing --ignore-dirty

Gives error:
image

  1. Update empty conandata.yml to contain a dummy entry, e.g. dummy: on first line
  2. re-run export conan export . user/testing --ignore-dirty

Succeeds with SCM data written to the local conan cache export:
image

Logs (Executed commands with output) (Include/Attach if Applicable)

See above.

@SeanSnyders
Copy link
Author

As a side note, if there are no conandata.yml then the export works fine.
Seems to only be an issue if the conandata.yml is empty.

@SeanSnyders SeanSnyders changed the title Empty source conandata.yml file gives error with scm_to_conandata during recipe export [bug] Empty source conandata.yml file gives error with scm_to_conandata during recipe export Dec 15, 2020
@memsharded memsharded self-assigned this Dec 16, 2020
@memsharded memsharded added this to the 1.33 milestone Dec 16, 2020
@memsharded
Copy link
Member

Thanks for the detailed report @SeanSnyders

Indeed a bug, already submitted #8215, will be in next Conan 1.33

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

Successfully merging a pull request may close this issue.

2 participants