For your second point, you can never really know what other work depends on
your package. You could display a message in the new package or in the
readme for example, but that's likely not going to work well for
various reasons. (but see my last comment)

However, what Jay is saying I believe (correct me if I'm wrong), is that
you can just create a tag for the previous version, modify your current
package 'my-package' on the pkg server to refer to that tag, and create a
new package 'my-package2' on the pkg server pointing to master. The pkg
catalog is going to be cluttered with all backward-incompatible version
numbers but a) Jay doesn't seem to be worried about that b) it's currently
not the case (meaning, people don't do that currently, but maybe they
should?).

Old users won't see the breaking change, and new users will see and use the
new version on the catalog (or clone directly from github). What's missing
again is a way to tell old users that a new package is available with new
features, but I think Jay was saying some time ago that this should be the
purpose of mailing lists and other media.



On Fri, May 1, 2020 at 2:23 PM Hendrik Boom <hend...@topoi.pooq.com> wrote:

> On Fri, May 01, 2020 at 06:12:55AM -0700, Jesse Alama wrote:
> > On Thursday, April 30, 2020 at 2:57:45 PM UTC+2, Jay McCarthy wrote:
> > >
> > >
> > > This is simply a social standard though. There is nothing that
> > > technically prevents you from breaking compatibility, except that your
> > > users may be upset. You can post things on the package server that
> > > follows any rules you want, including conflicting with any other
> > > packages.
> > >
> >
> > I'd like to second this point. There's nothing stopping you from pushing
> > whatever you want to your repo, and hence distributing whatever you want
> > via the package server. I've pushed breaking changes to my packages
> before,
> > and no one has complained, so I guess I didn't break any part of the
> > interface that they were using. (Or I have no users of my stuff at all,
> > which is certainly possible!)
> >
> > I don't know how many packages mention, in their description, that
> they're
> > experimental, explicitly warning me that the interface is unstable and
> > likely to change. I use 'em anyway because they offer useful
> functionality.
> > I don't recall being nailed by breaking changes, but perhaps I'm just
> > getting lucky.
> >
> > What exactly is the claim, anyway, about the package server not allowing
> > breaking changes? Is it that if you do a breaking change to your
> package,
> > then it's possible that other people's packages correspondingly break?
> If
> > so, then I think that's not a very interesting claim. Does the claim at
> > issue just amount to a restatement of the ethos that Jay mentioned about
> > trying to ensure backwards compatibility for a long time?
> >
> > (All this said, I'd like to learn more about setting up custom package
> > catalogs, as Alex mentioned, to take matters even more into your own
> hands.)
>
> Is there a mechanism for, when you know you are making a breaking change
> in a package, at least being warned about other packages that may break
> as a result?
>
> And is there a mechanism for testing those other packages before
> committing your breaking package to the public repository?
>
> -- hendrik
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/04ebf61c-54b3-4f58-96aa-f5bdc5f2b457%40googlegroups.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/20200501132344.4nwjgebdlyttwkzu%40topoi.pooq.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CABNTSaGQGFVL%3D4jhaV6WJH6b5QU52rfk-rJ4mbrhvCntO2AZDQ%40mail.gmail.com.

Reply via email to