File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ def __post_init__(
8686 self .version_position = None
8787 else :
8888 self .version_position = Position (** raw_version_position )
89+ if self .filename :
90+ self .version_position .file = self .filename
8991
9092 if raw_cargo_lock is None :
9193 self .cargo_lock = NoCargoLock ()
@@ -221,11 +223,11 @@ def eval_attr(opts: Options) -> Package:
221223 ] + opts .extra_flags
222224 res = run (cmd )
223225 out = json .loads (res .stdout )
224- package = Package (attribute = opts .attribute , import_path = opts .import_path , ** out )
225226 if opts .override_filename is not None :
226- package . filename = opts .override_filename
227+ out [ " filename" ] = opts .override_filename
227228 if opts .url is not None :
228- package .parsed_url = urlparse (opts .url )
229+ out ["url" ] = opts .url
230+ package = Package (attribute = opts .attribute , import_path = opts .import_path , ** out )
229231 if opts .version_preference != VersionPreference .SKIP and package .old_version == "" :
230232 raise UpdateError (
231233 f"Nix's builtins.parseDrvName could not parse the version from { package .name } "
You can’t perform that action at this time.
0 commit comments