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

... is not an osc package working copy #1594

Closed
rhabacker opened this issue Jul 2, 2024 · 1 comment · Fixed by #1590
Closed

... is not an osc package working copy #1594

rhabacker opened this issue Jul 2, 2024 · 1 comment · Fixed by #1590
Labels

Comments

@rhabacker
Copy link

rhabacker commented Jul 2, 2024

Describe the bug
An older checkout of a project from build.opensuse.org cannot be updated with osc version 1.8.1. I get an error message that "... is not an osc package working copy"

Versions

  • Operating system: openSUSE Leap 15.5
  • Packages: osc-1.8.1-150500.411.1.noarch

To Reproduce

Steps to reproduce the behavior:

  1. Unpack testcase.zip
  2. Enter unpacked directory, open a console and run osc update
  3. See error

Expected behavior
The error message should not appear and the update should take place.

Additional context

  • A comparison of the old directory with a current check-out results:
$ diff -r windows\:mingw\:snapshots.old/ windows\:mingw\:snapshots
Only in windows:mingw:snapshots/.osc: _osclib_version.

By copying the file _osclib_version into the old directory, the update command is successfully executed, which suggests that the current osc version does not take this case into account.

  • The older checkout took place in January 2019.
@rhabacker rhabacker added the Bug label Jul 2, 2024
@dmach
Copy link
Contributor

dmach commented Jul 2, 2024

Thanks for the report. It looks there was a time when osc was creating incorrect checkouts without _osclib_version.
There's a pending PR that fixes that: #1590
Originally I was planning to close it without merging, thinking that it was a one-off problem.
It seems that the problem might be more widespread and it requires a fix rather than forcing users to run osc repairwc for each such directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants