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

Critical fix for julia components generator: replacing hash with md5 #1377

Merged
merged 2 commits into from
Aug 24, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dash/development/_jl_components_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sys
import importlib
import uuid
import hashlib

from ._all_keywords import julia_keywords
from ._py_components_generation import reorder_props
Expand Down Expand Up @@ -407,7 +408,8 @@ def generate_toml_file(project_shortname, pkg_data):
project_ver = pkg_data.get("version")
package_name = jl_package_name(project_shortname)
u = uuid.UUID(jl_dash_uuid)
package_uuid = uuid.UUID(hex=u.hex[:-12] + hex(hash(package_name))[-12:])

package_uuid = uuid.UUID(hex=u.hex[:-12] + hashlib.md5(package_name.encode('utf-8')).hexdigest()[-12:])

authors_string = (
'authors = ["{}"]\n'.format(package_author) if package_author else ""
Expand Down