These are chat archives for non/algebra

21st
Jul 2015
InTheNow
@InTheNow
Jul 21 2015 13:04
@non - did you get the build sorted for machinist?
Erik Osheim
@non
Jul 21 2015 13:11
not yet -- looking into it this morning
InTheNow
@InTheNow
Jul 21 2015 13:12
cool - also I was just looking at imp where you remove the scala_2.X directories
would you like a solution to that?
Erik Osheim
@non
Jul 21 2015 13:13
@InTheNow sure, if it's not too much trouble.
InTheNow
@InTheNow
Jul 21 2015 13:14
Well, you need a similar solution for algebra, cats etc - so might be worth sorting out
Erik Osheim
@non
Jul 21 2015 13:15
aha!
it looks like the machinist release will succeed :)
InTheNow
@InTheNow
Jul 21 2015 13:28
if we could get Discipline released, I could PR algebra that has the scala_2.X fix already there.....
Erik Osheim
@non
Jul 21 2015 13:34
right. unfortunately i think that comes down to @larsrh's schedule.
Miles Sabin
@milessabin
Jul 21 2015 13:35
@non have you been able to contact @larsrh about Discipline?
Erik Osheim
@non
Jul 21 2015 13:43
i asked awhile ago -- i just sent him a twitter DM. i'll see what he says.
in theory i should be able to publish to org.typelevel but in practice i don't seem to have permission.
(i have temporarily changed machinist's organization ID just to be able to release it.)
Miles Sabin
@milessabin
Jul 21 2015 13:44
Really? Did you sign the artefacts?
It all just worked for me when I updated shapeless-contrib.
Erik Osheim
@non
Jul 21 2015 13:46
yes -- it gave me an authentication error -- wasn't even able to upload
however when i changed the org to "org.spire-math" it all worked fine.
that's why i have been reluctant to move projects which i am expected to publish over to "org.typelevel"
once that happens i don't have any ability to publish them.
(of course, if someone else can do it and wants to manage releases, then i'm totally excited to do it.)
Miles Sabin
@milessabin
Jul 21 2015 13:48
OK, I think we really need to pester Lars to let a few more people publish under typelevel.org ... there are too many people blocked on him right now :-(
Erik Osheim
@non
Jul 21 2015 13:48
right. the weird thing is, a year ago i opened an issue on sonatype and lars granted me access, but it seems it didn't take.
anyway, hopefully i'll hear back from him soon.
Miles Sabin
@milessabin
Jul 21 2015 13:49
That was the same ticket/thread that granted me access ... I saw your name above.
Erik Osheim
@non
Jul 21 2015 13:49
right.
Miles Sabin
@milessabin
Jul 21 2015 13:49
Is there a project you'd like me to try to publish?
Erik Osheim
@non
Jul 21 2015 13:50
if you want to clone machinist, change the organization back to "org.typelevel" and run release on that, i'd be interested to see if it worked
(i don't mind creating a new patch release, should be fine.)
you'll have to commit hte change, but you should have push access.
Miles Sabin
@milessabin
Jul 21 2015 13:54
Do I need to bump version.sbt or will the release plugin handle that?
Erik Osheim
@non
Jul 21 2015 13:58
it will prompt you
all you should have to do is run release. then ask for version 0.4.1 (next version can be 0.4.2-SNAPSHOT or 0.5.0-SNAPSHOT, whichever)
assuming you have the credentials, it should take care of all the rest, and cross-publish for 2.10 and 2.11
Miles Sabin
@milessabin
Jul 21 2015 13:59
OK, I'll give it a try now ...
Erik Osheim
@non
Jul 21 2015 13:59
thanks :)
InTheNow
@InTheNow
Jul 21 2015 14:00
And have access to github
Erik Osheim
@non
Jul 21 2015 14:01
oh yeah let me cnofirm that
ok @milessabin should be able to push to machinist via the hastily made "machinist" team :P
Miles Sabin
@milessabin
Jul 21 2015 14:12
Thanks ...
What should the release version be? It was 0.4.1-SNAPSHOT, got bumped to 0.4.1 by the release plugin, but now I'm seeing,
Tag [v0.4.1] exists! Overwrite, keep or abort or enter a new tag (o/k/a)? [a]
Or is that a consequence of the cross build?
Erik Osheim
@non
Jul 21 2015 14:15
go ahead and overwrite it
Miles Sabin
@milessabin
Jul 21 2015 14:15
Cool :-)
Erik Osheim
@non
Jul 21 2015 14:15
i bet some of my flailing created a bogus tag
the git pusha t the end might fail but that is fine.
just do git push --force --tags origin master at the very end
(after the SBT command is done, i mean. normally that happens automatically but without --force.)
Miles Sabin
@milessabin
Jul 21 2015 14:17

I'm now getting,

[error] Unable to find credentials for [Sonatype Nexus Repository Manager @ oss.sonatype.org].

How do you have this build locating credentials?

I have mine in my global sbt configuration.
Erik Osheim
@non
Jul 21 2015 14:19
mine are in ~/.sbt/0.13/sonatype.sbt
(i think that is loaded by the same mechanism as global.sbt)
Miles Sabin
@milessabin
Jul 21 2015 14:21
Yup.
Hmm ... so actually that's where I have my gpg key passphrase for signing.
I have my sonatype credentials in ~/.ivy2/.credentials and they're loaded in my project/Publish.scala, like so,
lazy val credentialsSetting = credentials += {
  Seq("SONATYPE_USER", "SONATYPE_PASS").map(k => sys.env.get(k)) match {
    case Seq(Some(user), Some(pass)) => Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass)
    case _ => Credentials(Path.userHome / ".ivy2" / ".credentials")
  }
}
Miles Sabin
@milessabin
Jul 21 2015 14:27
The match is for automated snapshot publishing via Travis, vs. publishing locally.
Can you show the form of your sonatype.sbt? (suitably redacted ;-)
Erik Osheim
@non
Jul 21 2015 14:34
credentials += Credentials("Sonatype Nexus Repository Manager",
                           "oss.sonatype.org",
                           "d_m",
                           "iamaverysecretpasswordpleasedontstealme")
Miles Sabin
@milessabin
Jul 21 2015 14:36
Ta ... I'll try again.
Erik Osheim
@non
Jul 21 2015 14:36
ok. feel free to change machinist's build.sbt if needed
Miles Sabin
@milessabin
Jul 21 2015 14:36
No, I think this is a better way of doing it ... what I have in shapeless is ancient history.
Erik Osheim
@non
Jul 21 2015 14:39
the snippet we're using in cats for automatic credentials is:
credentials ++= (for {
  username <- Option(System.getenv().get("SONATYPE_USERNAME"))
  password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq
which could obviously be boiled down a bit based on what you have
Miles Sabin
@milessabin
Jul 21 2015 14:50
That's better than what have ... I'll tweak shapeless accordingly.
Erik Osheim
@non
Jul 21 2015 14:51
looks like your release succeeded!
Miles Sabin
@milessabin
Jul 21 2015 14:51
OK, after some pfaffing around this seems to have succeeded.
Jinkx ;-)
InTheNow
@InTheNow
Jul 21 2015 14:52
+1 for @milessabin as release manager :wink2:
milessabin @milessabin runs for cover ...
Erik Osheim
@non
Jul 21 2015 14:52
ok so -- it seems like if lars signs off on a discipline release we (and by "we" i mean @milessabin) can make it happen ;)
Miles Sabin
@milessabin
Jul 21 2015 14:52
Sure thing ...
While you're at it, get Lars to request a refresh of your credentials and ask him to add a few more people to the inner circle :-)
Erik Osheim
@non
Jul 21 2015 20:23
@InTheNow we got a discipline release. tonight i'll try to update our discipline dependency and see if i can get a scala.js build working for algebra.
InTheNow
@InTheNow
Jul 21 2015 21:24
@non - excellent
I've got alot done already for algebra if you would rather wait till tomorrow I can push something then
Erik Osheim
@non
Jul 21 2015 21:26
ok yeah, i'll do that. thanks!
InTheNow
@InTheNow
Jul 21 2015 21:26
np.... getting very close to a cats.js release.
Erik Osheim
@non
Jul 21 2015 21:27
dangerously close ;) :cat2:
InTheNow
@InTheNow
Jul 21 2015 21:27
(and spire)