-
Notifications
You must be signed in to change notification settings - Fork 634
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 Civil3D hostname to fix psuedo warning for package users #13910
Conversation
/// as there is a mismatch between the host dependency name in packages and the host name used by Civil 3D for Dynamo. | ||
/// </summary> | ||
private readonly string Civil3DHostName = "Dynamo Civil 3D"; | ||
private readonly string oldCivil3DHostName = "Civil 3D"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm it's a bit weird to define this in the Dynamo code base, should we switch to a more tolerant match based on your earlier comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious - could we do this transformation at runtime on the package manager? (not actually modify the package entries on disk) ... I prefer this because we don't need to update dynamo to fix the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjkkirschner Do you mean adding the hostname in the hosts returned from Package Manager?
here: https://git.autodesk.com/Dynamo/PackageManager/blob/c1e6047b5a92419049098c4a478bfb463aed6aae/src/app.js#L239
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm it's a bit weird to define this in the Dynamo code base, should we switch to a more tolerant match based on your earlier comment?
@QilongTang updated with more tolerant approach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, I mean that when package manager encounters a package with this old hostname to just return the new one instead in the response when the user downloads this package or gets its header... but perhaps this has issues with the pkg.json?
looks like a sporadic failure. Running the job again: https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/8921/ |
Cherrypick this? |
…S#13910) * add cache * add new host name check * Update PackageManagerExtension.cs * Update PackageManagerExtension.cs * Update PackageManagerExtension.cs * Update PackageManagerExtension.cs * Update PackageManagerExtension.cs
…#13935) * add cache * add new host name check * Update PackageManagerExtension.cs * Update PackageManagerExtension.cs * Update PackageManagerExtension.cs * Update PackageManagerExtension.cs * Update PackageManagerExtension.cs
Purpose
https://jira.autodesk.com/browse/DYN-5470
Added
Dynamo Civil 3D
as the hostname for Civil 3D packages that haveCivil 3D
as the host dependency.Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
@DynamoDS/dynamo