You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original issue URL: kptdev/kpt#3501
Original issue user: https://github.com/ChristopherFry
Original issue created at: 2022-08-25T18:27:41Z
Original issue last updated at: 2023-01-13T13:41:17Z
Original issue body: ### Expected behavior
The Kptfile upstream(Lock).git.repo is formatted the same when cloning the same package using kpt get and kpt alpha rpkg clone.
Actual behavior
The repo and directory fields in the Kptfile upstream(Lock).git.repo varies slightly with the two commands.
Steps to reproduce the behavior
To reproduce, clone the same package with two different commands. Using basens in the kpt-samples repository as an example:
With kpt get:
> kpt pkg get https://github.com/GoogleContainerTools/kpt-samples.git/basens@basens/v0
Note the repo and directory field varies slightly between the two. The kpt alpha rpkg command adds .git to the repo field whereas kpt get does not, and kpt get prefixes directory with the a forward slash whereas kpt alpha rpkg does not.
Original issue comments:
Comment user: https://github.com/ChristopherFry
Comment created at: 2022-08-25T18:43:10Z
Comment last updated at: 2022-08-25T18:43:10Z
Comment body: cc @johnbelamaric
The text was updated successfully, but these errors were encountered:
tliron
transferred this issue from nephio-project/porch-issue-transfer
Apr 23, 2024
Original issue URL: kptdev/kpt#3501
Original issue user: https://github.com/ChristopherFry
Original issue created at: 2022-08-25T18:27:41Z
Original issue last updated at: 2023-01-13T13:41:17Z
Original issue body: ### Expected behavior
The Kptfile
upstream(Lock).git.repo
is formatted the same when cloning the same package usingkpt get
andkpt alpha rpkg clone
.Actual behavior
The
repo
anddirectory
fields in the Kptfileupstream(Lock).git.repo
varies slightly with the two commands.Steps to reproduce the behavior
To reproduce, clone the same package with two different commands. Using basens in the kpt-samples repository as an example:
With
kpt get
:Kptfile snippet:
With
kpt alpha rpkg clone
:Kptfile snippet:
Note the repo and directory field varies slightly between the two. The
kpt alpha rpkg
command adds.git
to therepo
field whereaskpt get
does not, andkpt get
prefixesdirectory
with the a forward slash whereaskpt alpha rpkg
does not.Original issue comments:
Comment user: https://github.com/ChristopherFry
Comment created at: 2022-08-25T18:43:10Z
Comment last updated at: 2022-08-25T18:43:10Z
Comment body: cc @johnbelamaric
The text was updated successfully, but these errors were encountered: