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

Fix builder config creation with data_dir #1932

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Feb 23, 2021

The data_dir parameter wasn't taken into account to create the config_id, therefore the resulting builder config was considered not custom. However a builder config that is non-custom must not have a name that collides with the predefined builder config names. Therefore it resulted in a ValueError("Cannot name a custom BuilderConfig the same as an available...")

I fixed that by commenting the line that used to ignore the data_dir when creating the config.

It was previously ignored before the introduction of config id because we didn't want to change the config name. Now it's fine to take it into account for the config id.

Now creating a config with a data_dir works again @patrickvonplaten

@lhoestq lhoestq merged commit 3469f81 into master Feb 23, 2021
@lhoestq lhoestq deleted the include-data_dir-in-config_id-creation branch February 23, 2021 10:45
@lhoestq lhoestq mentioned this pull request Feb 23, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant