mirror of https://github.com/databricks/cli.git
update comments
This commit is contained in:
parent
9568ce19ac
commit
97dedaba7f
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""
|
"""
|
||||||
Cross-platform set mtime with nanosecond precision.
|
Cross-platform set mtime with nanosecond precision.
|
||||||
Usage: setmtime.py <timestmap> <filenames>
|
Usage: setmtime.py <timestamp> <filenames>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -19,7 +19,7 @@ type WheelInfo struct {
|
||||||
// - if there is an existing part after + it is dropped
|
// - if there is an existing part after + it is dropped
|
||||||
// - append +<mtime of the original wheel> to version
|
// - append +<mtime of the original wheel> to version
|
||||||
//
|
//
|
||||||
// Example transform: "1.2.3" -> "1.2.3+2025030412345678"
|
// Example version transform: "1.2.3" -> "1.2.3+1741091696780123321"
|
||||||
func calculateNewVersion(info WheelInfo, mtime time.Time) (newVersion, newFilename string) {
|
func calculateNewVersion(info WheelInfo, mtime time.Time) (newVersion, newFilename string) {
|
||||||
baseVersion, _, _ := strings.Cut(info.Version, "+")
|
baseVersion, _, _ := strings.Cut(info.Version, "+")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue