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

Update scalajs-js-envs to 1.4.0 #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lolgab
Copy link

@lolgab lolgab commented Apr 1, 2023

This is needed to fix this issue scala-js/scala-js-js-envs#12 that is fixed in the latest version of scalajs-env-nodejs To share the version between build and meta-build I created a Scala file which I then syslinked to project/project/ by doing:

cd project/project
ln -s ../MetaBuildShared.scala

This is needed to fix this issue scala-js/scala-js-js-envs#12
that is fixed in the latest version of `scalajs-env-nodejs`
To share the version between build and meta-build I created a Scala
file which I then syslinked to project/project/ by doing:
```
cd project/project
ln -s ../MetaBuildShared.scala
```
Copy link
Owner

@exoego exoego left a comment

Choose a reason for hiding this comment

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

Thanks for changes!
Added a question.

@@ -0,0 +1 @@
../MetaBuildShared.scala
Copy link
Owner

@exoego exoego Apr 4, 2023

Choose a reason for hiding this comment

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

Q) Why is this new file added?

It appears that scalajsJsEnvsVersion is not used in project/project/~.

Copy link
Author

Choose a reason for hiding this comment

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

It is because project/project/*.scala files are available to project/*.sbt files as project/*.scala files are available to *.sbt files.

Copy link
Author

@lolgab lolgab Apr 6, 2023

Choose a reason for hiding this comment

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

I could also system-link it to project/MetaBuildShared.sbt which should be equivalent to project/project/MetaBuildShared.scala if you prefer.

Copy link
Author

Choose a reason for hiding this comment

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

@exoego I can also skip this DRY attempt and have the version defined twice.
If you can, let me know what you prefer so we can merge this PR :)

Copy link
Owner

@exoego exoego Apr 14, 2023

Choose a reason for hiding this comment

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

I still do not get it.
Again, it appears that scalajsJsEnvsVersion is not used in project/project/~.

I prefer not having unused file.
Is scalajsJsEnvsVersion used somewhere in project/project/~ ??

Copy link
Author

Choose a reason for hiding this comment

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

project/project/*.scala files are compiled together with project/*.sbt so it is used in project/plugins.sbt.

It it's the same situation when you define a project/Build.scala, you might think that it is unused in project/~ but the values are used in root build.sbt

Copy link
Author

Choose a reason for hiding this comment

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

If I delete project/project/MetaBuildShared.scala I get:

[info] welcome to sbt 1.5.3 (Homebrew Java 11.0.18)
/Users/lorenzo/scala/scala-js-env-jsdom-nodejs/project/plugins.sbt:6: error: not found: value MetaBuildShared
libraryDependencies += "org.scala-js" %% "scalajs-env-nodejs" % MetaBuildShared.scalajsJsEnvsVersion
                                                                ^
[error] Type error in expression

Copy link
Owner

Choose a reason for hiding this comment

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

Ah now I see.
Symlink is fine.

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

Successfully merging this pull request may close these issues.

2 participants