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

TonelWriter>>writeSnapshot: includes tag name in package name when there's no OrganizationDefinition #84

Closed
carolahp opened this issue Mar 27, 2020 · 1 comment

Comments

@carolahp
Copy link
Contributor

When writing a snapshot of a package that includes tags and the snapshot does not contain an OrganizationDefinition, the name of the folder for the package includes the name of the tag.

| aSnapshot memoryFileReference writer |
" Taking a snapshot of the package MonticelloMocks "
aSnapshot := (MCPackage new name: #MonticelloMocks) snapshot.
" Removing all elements from the snapshot except one class 
which is classified in the Package's tag 'Tag' "
(aSnapshot definitions
	select: [ :def | def className ~= #MCMockClassJ ])
	do: [ :each | aSnapshot definitions remove: each ].
memoryFileReference := FileSystem memory root.
writer := TonelWriter on: memoryFileReference.
writer writeSnapshot: aSnapshot.
	
(memoryFileReference / 'MonticelloMocks-Tag') exists. "Should not exist"
(memoryFileReference / 'MonticelloMocks') exists. "Should exist"
@jecisc
Copy link
Contributor

jecisc commented Oct 24, 2023

Fixed! :)

@jecisc jecisc closed this as completed Oct 24, 2023
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

No branches or pull requests

2 participants