Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[ETCM-129] Scala 2.13 #875

Merged
merged 46 commits into from
Jan 11, 2021
Merged

Conversation

dmitry-worker
Copy link
Contributor

@dmitry-worker dmitry-worker commented Dec 29, 2020

Description

Completed 2.13 scala migration

@dmitry-worker dmitry-worker changed the title Feature/etcm 129 scala point 13 [ETCM-129] Scala 2.13 Dec 30, 2020
@dmitry-worker dmitry-worker force-pushed the feature/ETCM-129-scala-point-13 branch from 015dd00 to 4b2beab Compare December 31, 2020 14:43
@dmitry-worker dmitry-worker marked this pull request as ready for review January 1, 2021 21:12
@dmitry-worker dmitry-worker force-pushed the feature/ETCM-129-scala-point-13 branch from 185db23 to e9089fe Compare January 1, 2021 22:34
Copy link
Contributor

@enriquerodbe enriquerodbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

repo.nix Outdated
sha256 = "44CEF93345FA7A12EB1830F7D7AA9881EAB09D87B5E1E4D10608CECDCC53258B";
"nix-local-preloaded/file:/var/lib/buildkite-agent/.sbtix/preloaded/com/google/protobuf/protobuf-java/3.7.0/protobuf-java-3.7.0-sources.jar" = {
url = "file:/var/lib/buildkite-agent/.sbtix/preloaded/com/google/protobuf/protobuf-java/3.7.0/protobuf-java-3.7.0-sources.jar";
sha256 = "116ADC64F2E67A9F2961C410B1FBE029447C4B39C62F6AE93797989E38C85B83";
Copy link
Contributor

@lemastero lemastero Jan 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

protobufs paths were changes from relative:

"nix-public/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0-javadoc.jar" = {	
      url = "https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0-javadoc.jar";	
      sha256 = "AD810CD0D6786E656C8BF3C0EA9851BCD3FBA2CCBC1E803326B4012BE0943D19";	
    };

to absolute:

url = "file:/var/lib/buildkite-agent/.sbtix/preloaded/com/google/protobuf/protobuf-java/3.7.0/protobuf-java-3.7.0-sources.jar";

This needs to be investigated. This caused issues in the past.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I will arrange a call about that also

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sbt was updated in the past, and it was downgraded because it generated local paths: https://github.com/input-output-hk/mantis/pull/708/files

Maybe restoring sbt version would fix this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it is not an sbt but an sbtix failure? WDYT?

@lemastero
Copy link
Contributor

lemastero commented Jan 5, 2021

IMHO it would be good to cherry-pick changes and make separate PR's:

  • (no need for Scala 2.13) Upgrade protobuf
  • (no need for Scala 2.13) Use only functionalities of ByteString supported on Scala 2.13
  • (optionally) update SBT (there was problem in updating sbt in the past, if this is still the case lets keep original sbt version)
  • change Scala to 2.13

Modular changes are easier to revert in case we need to and are easier to review.
Possibly it will be easier to figure out what are the problems with nix files.

@dmitry-worker dmitry-worker merged commit 5f38623 into develop Jan 11, 2021
@jonringer jonringer deleted the feature/ETCM-129-scala-point-13 branch January 12, 2021 00:11
biandratti pushed a commit that referenced this pull request Jan 20, 2021
* [ETCM-129] - Migrate to 2.13

Co-authored-by: dmitry-worker <dzenmassta@gmail.com>
Co-authored-by: Jonathan Ringer <jonathan.ringer@iohk.io>
Guided by: Piotr Paradzinski <piotr.paradzinski@iohk.io>
Reviewed by: Enrique Rodríguez <enrique.rodriguez@iohk.io>
Dependencies upgrade guide: Akosh Farkash <akosh.farkash@iohk.io>
biandratti pushed a commit that referenced this pull request Jan 20, 2021
* [ETCM-129] - Migrate to 2.13

Co-authored-by: dmitry-worker <dzenmassta@gmail.com>
Co-authored-by: Jonathan Ringer <jonathan.ringer@iohk.io>
Guided by: Piotr Paradzinski <piotr.paradzinski@iohk.io>
Reviewed by: Enrique Rodríguez <enrique.rodriguez@iohk.io>
Dependencies upgrade guide: Akosh Farkash <akosh.farkash@iohk.io>
biandratti pushed a commit that referenced this pull request Jan 20, 2021
* [ETCM-129] - Migrate to 2.13

Co-authored-by: dmitry-worker <dzenmassta@gmail.com>
Co-authored-by: Jonathan Ringer <jonathan.ringer@iohk.io>
Guided by: Piotr Paradzinski <piotr.paradzinski@iohk.io>
Reviewed by: Enrique Rodríguez <enrique.rodriguez@iohk.io>
Dependencies upgrade guide: Akosh Farkash <akosh.farkash@iohk.io>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants