Coder Social home page Coder Social logo

Comments (8)

jeremyrickard avatar jeremyrickard commented on June 29, 2024 2

@cpanato have a fix. we'll open a PR.

from release.

jeremyrickard avatar jeremyrickard commented on June 29, 2024 1

@DannyBrito and I just debugged this and we have a solution and will open a PR but we wanted to chat about it first. I think the proper fix here is to update release-sdk to make cloneOrOpenRepo check that the remotes for the specified repo contain the repoPath argument and return an error if it doesn't. Then we can either handle the error in release-notes and make it create a new temp dir and go forward, or maybe it would be more appropriate to just error and provide an error message indicating that the temp dir needs to be cleaned up.

This is probably going to impact very few people since most folks aren't running release-notes for multiple projects :)

@puerco @saschagrunert wdyt?

from release.

cpanato avatar cpanato commented on June 29, 2024

@jeremyrickard, what are the parameters that you use to run the rel-notes?

to run for another repo usually you do

release-notes --required-author="" --output=release-notes.md --start-rev v0.10.4 --end-rev v0.11.0 --org kubernetes-sigs --repo release-sdk --branch main

from release.

xmudrii avatar xmudrii commented on June 29, 2024

@cpanato I used the following command:

release-notes generate \
    --org="kubernetes-sigs" \
    --repo="promo-tools" \
    --start-rev="v4.0.4" \
    --end-rev="v4.0.5" \
    --branch="main" \
    --markdown-links

from release.

jeremyrickard avatar jeremyrickard commented on June 29, 2024

@cpanato yeah the issue here using you already have a temp directory with the remotes pointing at another repo, we just reuse that dir and run a git pull —rebase. We don’t check that it’s the right repo

from release.

cpanato avatar cpanato commented on June 29, 2024

I see so the issue is we need to clean the temp dir as well

from release.

saschagrunert avatar saschagrunert commented on June 29, 2024

cloneOrOpenRepo check that the remotes for the specified repo contain the repoPath argument and return an error if it doesn't. Then we can either handle the error in release-notes and make it create a new temp dir and go forward, or maybe it would be more appropriate to just error and provide an error message indicating that the temp dir needs to be cleaned up.

Yeah checking the remote and wiping the cache if they don't match is a good solution. 👍

from release.

cpanato avatar cpanato commented on June 29, 2024

@jeremyrickard should I do the fix or you already have something?

from release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.