Comments (2)
well... right now is pretty useless.
the rational for it was:
a) I do not want to trust in the subdir name.
b) I want a way make possible to coexist packages and regular dirs (then we need to "mark" them in someway... something like the .package extension in filetree)
c) I want to be able to store also package metadata (package comments, etc.). Which are for the moment just "envisioned" for Pharo, but it will take time to arrive.
But... purposes a-b are a failure because I discovered monticello implementation of package name validation is very naive and it receives a package name which is just a plain string (I guess that's the reason why you ended adding a .package extension to filetree).
Anyway I was planning a refactor of #canReadFileNamed:
to fix that, but then there is backward compatibility, etc. to take into account :/
So now my idea is to implement a second mechanism on monticello that validates better, but keep the old one for older versions... a mess ;)
Other solution is just to resign that functionality and drop support for it, but in the long way I think we will need that.
from tonel.
... okay ... I actually have a use for including package metadata in the very short term ... basically when you "copy" a source tree out of a git repository (primary) into another repository like svn, you'd like to be able to trace the source back to the original git version, so I was thinking that I'd stash the commit SHA into the package.st file ... and for now it would write only for now ... anyway I agree that not relying on the directory name is a good thing ... although it becomes an additional point of pain/validation if a user does the copy by hand:) ... I think I mentioned before that in the first 6 months of FileTree, i think I spun through 6 different formats before finally settling on one ... I think that most of the Filetree implementations will still read them ...
You could add some info to the package.st indicating how the file was written and then a reader can use that meta data to decide how to read/interpret the rest of the data ... that way we'll have an early adopter reader for handling older formats and then the latest and greatest which will be much easier to tweak ...
from tonel.
Related Issues (20)
- run tests on github actions HOT 1
- Tonel should not use MonticelloMocks package - but have own mocks
- Cleanup: Condense MonticelloTonel packages
- Check that there is no user of withSqueakLineEndings or friends
- Tonel doesn't support custom #compilerClass
- Tonel cannot write the attach method
- Conversion from filetree to tonel: package wrongly converted HOT 5
- Tonel ignores MCVersion package name
- Tonel breaks with dots after selector
- Shadow variable in TonelWriter
- Tonel does not check for duplicated methods in .tonel file HOT 1
- TonelWriter should use traceCr: HOT 2
- TonelWriter>>writeSnapshot: includes tag name in package name when there's no OrganizationDefinition HOT 1
- Improve can't parse error
- Missing License
- STON should depend on GitHub STON not STHub STON HOT 1
- Read/write problem when a method has certain "unfinished statements" HOT 3
- Category cleanups and alignments
- Better error report
- TonelWriter uses the platform line ending HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tonel.